34 references to OtlpSpanKind
Aspire.Dashboard (18)
Components\Pages\TraceDetail.razor.cs (2)
141case OtlpSpanKind.Server: 143case OtlpSpanKind.Consumer:
Model\Otlp\SpanWaterfallViewModel.cs (2)
148var isUninstrumentedPeer = hasPeerService && span.Kind is OtlpSpanKind.Client or OtlpSpanKind.Producer && !span.GetChildSpans().Any();
Otlp\Model\OtlpSpan.cs (4)
31public required OtlpSpanKind Kind { get; init; } 136if (span.Kind is OtlpSpanKind.Client or OtlpSpanKind.Producer or OtlpSpanKind.Consumer)
Otlp\Storage\TelemetryRepository.cs (10)
892internal static OtlpSpanKind ConvertSpanKind(SpanKind? kind) 898SpanKind.Unspecified => OtlpSpanKind.Internal, 899SpanKind.Internal => OtlpSpanKind.Internal, 900SpanKind.Client => OtlpSpanKind.Client, 901SpanKind.Server => OtlpSpanKind.Server, 902SpanKind.Producer => OtlpSpanKind.Producer, 903SpanKind.Consumer => OtlpSpanKind.Consumer, 904_ => OtlpSpanKind.Unspecified 1074var hasUninstrumentedPeer = hasPeerService && span.Kind is OtlpSpanKind.Client or OtlpSpanKind.Producer && !span.GetChildSpans().Any();
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
305KeyValuePair<string, string>[]? attributes = null, OtlpSpanStatusCode? statusCode = null, string? statusMessage = null, OtlpSpanKind kind = OtlpSpanKind.Unspecified,
Aspire.Dashboard.Tests (14)
Model\SpanWaterfallViewModelTests.cs (3)
55trace.AddSpan(TelemetryTestHelpers.CreateOtlpSpan(app1, trace, scope, spanId: "1", parentSpanId: null, startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc), kind: OtlpSpanKind.Client, attributes: [KeyValuePair.Create("http.url", "http://localhost:59267/6eed7c2dedc14419901b813e8fe87a86/getScriptTag"), KeyValuePair.Create("server.address", "localhost")])); 56trace.AddSpan(TelemetryTestHelpers.CreateOtlpSpan(app2, trace, scope, spanId: "2", parentSpanId: null, startDate: new DateTime(2001, 2, 1, 1, 1, 2, DateTimeKind.Utc), kind: OtlpSpanKind.Client)); 105kind: OtlpSpanKind.Client);
TelemetryRepositoryTests\TraceTests.cs (9)
26[InlineData(OtlpSpanKind.Server, Span.Types.SpanKind.Server)] 27[InlineData(OtlpSpanKind.Client, Span.Types.SpanKind.Client)] 28[InlineData(OtlpSpanKind.Consumer, Span.Types.SpanKind.Consumer)] 29[InlineData(OtlpSpanKind.Producer, Span.Types.SpanKind.Producer)] 30[InlineData(OtlpSpanKind.Internal, Span.Types.SpanKind.Internal)] 31[InlineData(OtlpSpanKind.Internal, Span.Types.SpanKind.Unspecified)] 32[InlineData(OtlpSpanKind.Unspecified, (Span.Types.SpanKind)1000)] 33public void ConvertSpanKind(OtlpSpanKind expected, Span.Types.SpanKind value) 35var result = TelemetryRepository.ConvertSpanKind(value);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
305KeyValuePair<string, string>[]? attributes = null, OtlpSpanStatusCode? statusCode = null, string? statusMessage = null, OtlpSpanKind kind = OtlpSpanKind.Unspecified,