24 references to OtlpSpanKind
Aspire.Dashboard (15)
Components\Pages\TraceDetail.razor.cs (4)
106case OtlpSpanKind.Server: 108case OtlpSpanKind.Consumer: 168var isUninstrumentedPeer = hasPeerService && span.Kind is OtlpSpanKind.Client or OtlpSpanKind.Producer && !span.GetChildSpans().Any();
Model\Otlp\SpanWaterfallViewModel.cs (3)
60if (span.Kind is OtlpSpanKind.Client or OtlpSpanKind.Producer or OtlpSpanKind.Consumer)
Otlp\Storage\TelemetryRepository.cs (8)
635internal static OtlpSpanKind ConvertSpanKind(SpanKind? kind) 641SpanKind.Unspecified => OtlpSpanKind.Internal, 642SpanKind.Internal => OtlpSpanKind.Internal, 643SpanKind.Client => OtlpSpanKind.Client, 644SpanKind.Server => OtlpSpanKind.Server, 645SpanKind.Producer => OtlpSpanKind.Producer, 646SpanKind.Consumer => OtlpSpanKind.Consumer, 647_ => OtlpSpanKind.Unspecified
Aspire.Dashboard.Tests (9)
TelemetryRepositoryTests\TraceTests.cs (9)
22[InlineData(OtlpSpanKind.Server, Span.Types.SpanKind.Server)] 23[InlineData(OtlpSpanKind.Client, Span.Types.SpanKind.Client)] 24[InlineData(OtlpSpanKind.Consumer, Span.Types.SpanKind.Consumer)] 25[InlineData(OtlpSpanKind.Producer, Span.Types.SpanKind.Producer)] 26[InlineData(OtlpSpanKind.Internal, Span.Types.SpanKind.Internal)] 27[InlineData(OtlpSpanKind.Internal, Span.Types.SpanKind.Unspecified)] 28[InlineData(OtlpSpanKind.Unspecified, (Span.Types.SpanKind)1000)] 29public void ConvertSpanKind(OtlpSpanKind expected, Span.Types.SpanKind value) 31var result = TelemetryRepository.ConvertSpanKind(value);