26 references to OtlpSpanKind
Aspire.Dashboard (12)
Components\Pages\TraceDetail.razor.cs (2)
128
case
OtlpSpanKind
.Server:
130
case
OtlpSpanKind
.Consumer:
Model\Otlp\SpanWaterfallViewModel.cs (2)
148
var isUninstrumentedPeer = hasPeerService && span.Kind is
OtlpSpanKind
.Client or
OtlpSpanKind
.Producer && !span.GetChildSpans().Any();
Otlp\Storage\TelemetryRepository.cs (8)
886
internal static
OtlpSpanKind
ConvertSpanKind(SpanKind? kind)
892
SpanKind.Unspecified =>
OtlpSpanKind
.Internal,
893
SpanKind.Internal =>
OtlpSpanKind
.Internal,
894
SpanKind.Client =>
OtlpSpanKind
.Client,
895
SpanKind.Server =>
OtlpSpanKind
.Server,
896
SpanKind.Producer =>
OtlpSpanKind
.Producer,
897
SpanKind.Consumer =>
OtlpSpanKind
.Consumer,
898
_ =>
OtlpSpanKind
.Unspecified
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
294
KeyValuePair<string, string>[]? attributes = null, OtlpSpanStatusCode? statusCode = null, string? statusMessage = null,
OtlpSpanKind
kind =
OtlpSpanKind
.Unspecified)
Aspire.Dashboard.Tests (12)
Model\SpanWaterfallViewModelTests.cs (1)
75
kind:
OtlpSpanKind
.Client);
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 (2)
294
KeyValuePair<string, string>[]? attributes = null, OtlpSpanStatusCode? statusCode = null, string? statusMessage = null,
OtlpSpanKind
kind =
OtlpSpanKind
.Unspecified)