26 references to OtlpSpanKind
Aspire.Dashboard (15)
Components\Pages\TraceDetail.razor.cs (2)
100case OtlpSpanKind.Server: 102case OtlpSpanKind.Consumer:
Model\Otlp\SpanWaterfallViewModel.cs (5)
60if (span.Kind is OtlpSpanKind.Client or OtlpSpanKind.Producer or OtlpSpanKind.Consumer) 152var isUninstrumentedPeer = hasPeerService && span.Kind is OtlpSpanKind.Client or OtlpSpanKind.Producer && !span.GetChildSpans().Any();
Otlp\Storage\TelemetryRepository.cs (8)
756internal static OtlpSpanKind ConvertSpanKind(SpanKind? kind) 762SpanKind.Unspecified => OtlpSpanKind.Internal, 763SpanKind.Internal => OtlpSpanKind.Internal, 764SpanKind.Client => OtlpSpanKind.Client, 765SpanKind.Server => OtlpSpanKind.Server, 766SpanKind.Producer => OtlpSpanKind.Producer, 767SpanKind.Consumer => OtlpSpanKind.Consumer, 768_ => OtlpSpanKind.Unspecified
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
297Kind = OtlpSpanKind.Unspecified,
Aspire.Dashboard.Tests (10)
TelemetryRepositoryTests\TraceTests.cs (9)
25[InlineData(OtlpSpanKind.Server, Span.Types.SpanKind.Server)] 26[InlineData(OtlpSpanKind.Client, Span.Types.SpanKind.Client)] 27[InlineData(OtlpSpanKind.Consumer, Span.Types.SpanKind.Consumer)] 28[InlineData(OtlpSpanKind.Producer, Span.Types.SpanKind.Producer)] 29[InlineData(OtlpSpanKind.Internal, Span.Types.SpanKind.Internal)] 30[InlineData(OtlpSpanKind.Internal, Span.Types.SpanKind.Unspecified)] 31[InlineData(OtlpSpanKind.Unspecified, (Span.Types.SpanKind)1000)] 32public void ConvertSpanKind(OtlpSpanKind expected, Span.Types.SpanKind value) 34var result = TelemetryRepository.ConvertSpanKind(value);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
297Kind = OtlpSpanKind.Unspecified,