26 references to OtlpSpanKind
Aspire.Dashboard (15)
Components\Pages\TraceDetail.razor.cs (2)
113case OtlpSpanKind.Server: 115case 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)
856internal static OtlpSpanKind ConvertSpanKind(SpanKind? kind) 862SpanKind.Unspecified => OtlpSpanKind.Internal, 863SpanKind.Internal => OtlpSpanKind.Internal, 864SpanKind.Client => OtlpSpanKind.Client, 865SpanKind.Server => OtlpSpanKind.Server, 866SpanKind.Producer => OtlpSpanKind.Producer, 867SpanKind.Consumer => OtlpSpanKind.Consumer, 868_ => OtlpSpanKind.Unspecified
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
299Kind = 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)
299Kind = OtlpSpanKind.Unspecified,