24 references to OtlpSpanKind
Aspire.Dashboard (15)
Components\Pages\TraceDetail.razor.cs (4)
106
case
OtlpSpanKind
.Server:
108
case
OtlpSpanKind
.Consumer:
168
var isUninstrumentedPeer = hasPeerService && span.Kind is
OtlpSpanKind
.Client or
OtlpSpanKind
.Producer && !span.GetChildSpans().Any();
Model\Otlp\SpanWaterfallViewModel.cs (3)
60
if (span.Kind is
OtlpSpanKind
.Client or
OtlpSpanKind
.Producer or
OtlpSpanKind
.Consumer)
Otlp\Storage\TelemetryRepository.cs (8)
635
internal static
OtlpSpanKind
ConvertSpanKind(SpanKind? kind)
641
SpanKind.Unspecified =>
OtlpSpanKind
.Internal,
642
SpanKind.Internal =>
OtlpSpanKind
.Internal,
643
SpanKind.Client =>
OtlpSpanKind
.Client,
644
SpanKind.Server =>
OtlpSpanKind
.Server,
645
SpanKind.Producer =>
OtlpSpanKind
.Producer,
646
SpanKind.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)]
29
public void ConvertSpanKind(
OtlpSpanKind
expected, Span.Types.SpanKind value)
31
var
result = TelemetryRepository.ConvertSpanKind(value);