26 references to PeerServiceAttributeKey
Aspire.Dashboard (3)
Model\DashboardSqliteOutgoingPeerResolver.cs (1)
14
var isDashboardSqlite = string.Equals(attributes.GetValue(OtlpSpan.
PeerServiceAttributeKey
), DashboardRunStore.DatabaseFileName, StringComparison.Ordinal) &&
Otlp\Model\OtlpHelpers.cs (1)
414
var address = GetValue(values, OtlpSpan.
PeerServiceAttributeKey
);
ServiceClient\TracingSqliteConnection.cs (1)
85
activity.SetTag(OtlpSpan.
PeerServiceAttributeKey
, databaseName);
Aspire.Dashboard.Tests (23)
DashboardSqliteOutgoingPeerResolverTests.cs (2)
25
[InlineData(OtlpSpan.
PeerServiceAttributeKey
, "postgresql")]
44
KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "dashboard.db"),
Model\DashboardSqliteDatabaseTests.cs (2)
116
Assert.Equal("dashboard.db", activity.GetTagItem(OtlpSpan.
PeerServiceAttributeKey
));
194
Assert.Equal("dashboard.db", activity.GetTagItem(OtlpSpan.
PeerServiceAttributeKey
));
Model\ResourceMenuBuilderTests.cs (2)
133
TelemetryTestHelpers.CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-1")], kind: Span.Types.SpanKind.Client),
134
TelemetryTestHelpers.CreateSpan(traceId: "1", spanId: "1-2", startTime: s_testTime.AddMinutes(5), endTime: s_testTime.AddMinutes(10), parentSpanId: "1-1", attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-2")], kind: Span.Types.SpanKind.Client)
Model\TelemetryExportServiceTests.cs (1)
494
attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "raw-address")],
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (1)
157
attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "backend")],
TelemetryRepositoryTests\TraceTests.cs (15)
404
attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "dashboard.db")],
1780
Spans = { CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create("key1", "value1"), KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-1")], kind: Span.Types.SpanKind.Client) }
2631
CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-1")], kind: Span.Types.SpanKind.Client),
2632
CreateSpan(traceId: "1", spanId: "1-2", startTime: s_testTime.AddMinutes(5), endTime: s_testTime.AddMinutes(10), parentSpanId: "1-1", attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-2")], kind: Span.Types.SpanKind.Client)
2710
attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-1")],
2740
attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-2")],
2797
CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-1")], kind: Span.Types.SpanKind.Client)
2838
attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-1")],
2900
CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-1")], kind: Span.Types.SpanKind.Client),
2901
CreateSpan(traceId: "1", spanId: "1-2", startTime: s_testTime.AddMinutes(5), endTime: s_testTime.AddMinutes(10), parentSpanId: "1-1", attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-2")], kind: Span.Types.SpanKind.Client)
3009
attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "localhost")],
3053
attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "localhost")],
3114
CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-1")], kind: Span.Types.SpanKind.Client),
3115
CreateSpan(traceId: "1", spanId: "1-2", startTime: s_testTime.AddMinutes(5), endTime: s_testTime.AddMinutes(10), parentSpanId: "1-1", attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "value-2")], kind: Span.Types.SpanKind.Client)
3478
attributes: [KeyValuePair.Create(OtlpSpan.
PeerServiceAttributeKey
, "peer")],