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