13 references to OtlpSpanStatusCode
Aspire.Dashboard (8)
Model\Otlp\SpanWaterfallViewModel.cs (1)
22
public bool IsError => Span.Status ==
OtlpSpanStatusCode
.Error;
Model\TraceHelpers.cs (2)
63
if (span.Status ==
OtlpSpanStatusCode
.Error)
74
new OrderedApplication(span.Source.Application, appFirstTimes.Count, currentMinDate.Value, totalSpans: 1, erroredSpans: span.Status ==
OtlpSpanStatusCode
.Error ? 1 : 0));
Otlp\Storage\TelemetryRepository.cs (5)
845
private static
OtlpSpanStatusCode
ConvertStatus(Status? status)
849
Status.Types.StatusCode.Ok =>
OtlpSpanStatusCode
.Ok,
850
Status.Types.StatusCode.Error =>
OtlpSpanStatusCode
.Error,
851
Status.Types.StatusCode.Unset =>
OtlpSpanStatusCode
.Unset,
852
_ =>
OtlpSpanStatusCode
.Unset
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
291
KeyValuePair<string, string>[]? attributes = null,
OtlpSpanStatusCode
? statusCode = null, string? statusMessage = null)
306
Status = statusCode ??
OtlpSpanStatusCode
.Unset,
Aspire.Dashboard.Tests (3)
TelemetryRepositoryTests\OtlpSpanTests.cs (1)
26
statusCode:
OtlpSpanStatusCode
.Ok, statusMessage: "Status message!", attributes: [new KeyValuePair<string, string>(KnownTraceFields.StatusMessageField, "value")]);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
291
KeyValuePair<string, string>[]? attributes = null,
OtlpSpanStatusCode
? statusCode = null, string? statusMessage = null)
306
Status = statusCode ??
OtlpSpanStatusCode
.Unset,