17 references to OtlpSpanStatusCode
Aspire.Dashboard (11)
Components\Pages\Traces.razor.cs (1)
229
if (entry.Spans.Any(span => span.Status ==
OtlpSpanStatusCode
.Error))
Model\Otlp\SpanWaterfallViewModel.cs (1)
22
public bool IsError => Span.Status ==
OtlpSpanStatusCode
.Error;
Model\TraceHelpers.cs (2)
81
if (span.Status ==
OtlpSpanStatusCode
.Error)
92
new OrderedApplication(application, appFirstTimes.Count, currentMinDate, totalSpans: 1, erroredSpans: span.Status ==
OtlpSpanStatusCode
.Error ? 1 : 0));
Otlp\Model\OtlpSpan.cs (2)
34
public required
OtlpSpanStatusCode
Status { get; init; }
110
if (Status !=
OtlpSpanStatusCode
.Unset)
Otlp\Storage\TelemetryRepository.cs (5)
917
private static
OtlpSpanStatusCode
ConvertStatus(Status? status)
921
Status.Types.StatusCode.Ok =>
OtlpSpanStatusCode
.Ok,
922
Status.Types.StatusCode.Error =>
OtlpSpanStatusCode
.Error,
923
Status.Types.StatusCode.Unset =>
OtlpSpanStatusCode
.Unset,
924
_ =>
OtlpSpanStatusCode
.Unset
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
306
KeyValuePair<string, string>[]? attributes = null,
OtlpSpanStatusCode
? statusCode = null, string? statusMessage = null, OtlpSpanKind kind = OtlpSpanKind.Unspecified,
322
Status = statusCode ??
OtlpSpanStatusCode
.Unset,
Aspire.Dashboard.Tests (4)
Model\SpanWaterfallViewModelTests.cs (1)
135
statusCode:
OtlpSpanStatusCode
.Unset,
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)
306
KeyValuePair<string, string>[]? attributes = null,
OtlpSpanStatusCode
? statusCode = null, string? statusMessage = null, OtlpSpanKind kind = OtlpSpanKind.Unspecified,
322
Status = statusCode ??
OtlpSpanStatusCode
.Unset,