45 references to OtlpHelpers
Aspire.Dashboard (36)
Components\Controls\Chart\ChartContainer.razor.cs (1)
134var value = OtlpHelpers.GetValue(attributes, filter.Name);
Components\Controls\Chart\PlotlyChart.razor.cs (1)
159: $"{Loc[nameof(ControlsStrings.PlotlyChartTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Dialogs\ExemplarsDialog.razor.cs (1)
61: $"{Loc[nameof(Resources.Dialogs.ExemplarsDialogTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Pages\TraceDetail.razor.cs (2)
167var hasPeerService = OtlpHelpers.GetPeerAddress(span.Attributes) != null; 208return OtlpHelpers.GetPeerAddress(span.Attributes);
Model\BrowserLinkOutgoingPeerResolver.cs (2)
38var url = OtlpHelpers.GetValue(attributes, "url.full") ?? OtlpHelpers.GetValue(attributes, "http.url");
Model\MetricsHelpers.cs (1)
39Message = string.Format(CultureInfo.InvariantCulture, loc[nameof(Dialogs.OpenTraceDialogMessage)], OtlpHelpers.ToShortenedId(traceId)),
Model\Otlp\SpanWaterfallViewModel.cs (14)
62if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "http.method"))) 64var httpMethod = OtlpHelpers.GetValue(span.Attributes, "http.method"); 65var statusCode = OtlpHelpers.GetValue(span.Attributes, "http.status_code"); 69else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "db.system"))) 71var dbSystem = OtlpHelpers.GetValue(span.Attributes, "db.system"); 75else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "rpc.system"))) 77var rpcSystem = OtlpHelpers.GetValue(span.Attributes, "rpc.system"); 78var rpcService = OtlpHelpers.GetValue(span.Attributes, "rpc.service"); 79var rpcMethod = OtlpHelpers.GetValue(span.Attributes, "rpc.method"); 83var grpcStatusCode = OtlpHelpers.GetValue(span.Attributes, "rpc.grpc.status_code"); 95else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "messaging.system"))) 97var messagingSystem = OtlpHelpers.GetValue(span.Attributes, "messaging.system"); 98var messagingOperation = OtlpHelpers.GetValue(span.Attributes, "messaging.operation"); 99var destinationName = OtlpHelpers.GetValue(span.Attributes, "messaging.destination.name");
Model\ResourceOutgoingPeerResolver.cs (1)
69var address = OtlpHelpers.GetPeerAddress(attributes);
Otlp\Model\MetricValues\DimensionScope.cs (5)
36var start = OtlpHelpers.UnixNanoSecondsToDateTime(d.StartTimeUnixNano); 37var end = OtlpHelpers.UnixNanoSecondsToDateTime(d.TimeUnixNano); 84var start = OtlpHelpers.UnixNanoSecondsToDateTime(h.StartTimeUnixNano); 85var end = OtlpHelpers.UnixNanoSecondsToDateTime(h.TimeUnixNano); 126var start = OtlpHelpers.UnixNanoSecondsToDateTime(exemplar.TimeUnixNano);
Otlp\Model\OtlpLogEntry.cs (2)
49TimeStamp = OtlpHelpers.UnixNanoSecondsToDateTime(record.TimeUnixNano); 53Message = OtlpHelpers.TruncateString(record.Body.GetString(), options.MaxAttributeLength);
Otlp\Model\OtlpTrace.cs (1)
106TraceId = OtlpHelpers.ToHexString(traceId);
Otlp\Storage\TelemetryRepository.cs (5)
399return OtlpHelpers.GetItems(results, context.StartIndex, context.Count); 490var pagedResults = OtlpHelpers.GetItems(results, context.StartIndex, context.Count, copyFunc); 878Time = OtlpHelpers.UnixNanoSecondsToDateTime(e.TimeUnixNano), 908StartTime = OtlpHelpers.UnixNanoSecondsToDateTime(span.StartTimeUnixNano), 909EndTime = OtlpHelpers.UnixNanoSecondsToDateTime(span.EndTimeUnixNano),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
40return OtlpHelpers.ToHexString(id);
Aspire.Dashboard.Tests (8)
Model\ApplicationsSelectHelpersTests.cs (1)
215var applicationKey = OtlpHelpers.GetApplicationKey(resource);
TelemetryRepositoryTests\MetricsTests.cs (1)
310var end = OtlpHelpers.UnixNanoSecondsToDateTime(nanoSeconds);
TelemetryRepositoryTests\OtlpHelpersTests.cs (5)
20var s = OtlpHelpers.GetString(anyValue); 36var s = OtlpHelpers.GetString(anyValue); 49var s = OtlpHelpers.GetString(anyValue); 72var s = OtlpHelpers.GetString(anyValue); 135var s = OtlpHelpers.GetString(anyValue);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
40return OtlpHelpers.ToHexString(id);