26 references to OtlpSpanKind
Aspire.Dashboard (15)
Components\Pages\TraceDetail.razor.cs (2)
101
case
OtlpSpanKind
.Server:
103
case
OtlpSpanKind
.Consumer:
Model\Otlp\SpanWaterfallViewModel.cs (5)
60
if (span.Kind is
OtlpSpanKind
.Client or
OtlpSpanKind
.Producer or
OtlpSpanKind
.Consumer)
152
var isUninstrumentedPeer = hasPeerService && span.Kind is
OtlpSpanKind
.Client or
OtlpSpanKind
.Producer && !span.GetChildSpans().Any();
Otlp\Storage\TelemetryRepository.cs (8)
756
internal static
OtlpSpanKind
ConvertSpanKind(SpanKind? kind)
762
SpanKind.Unspecified =>
OtlpSpanKind
.Internal,
763
SpanKind.Internal =>
OtlpSpanKind
.Internal,
764
SpanKind.Client =>
OtlpSpanKind
.Client,
765
SpanKind.Server =>
OtlpSpanKind
.Server,
766
SpanKind.Producer =>
OtlpSpanKind
.Producer,
767
SpanKind.Consumer =>
OtlpSpanKind
.Consumer,
768
_ =>
OtlpSpanKind
.Unspecified
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
297
Kind =
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)]
32
public void ConvertSpanKind(
OtlpSpanKind
expected, Span.Types.SpanKind value)
34
var
result = TelemetryRepository.ConvertSpanKind(value);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
297
Kind =
OtlpSpanKind
.Unspecified,