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