51 references to OtlpHelpers
Aspire.Dashboard (36)
Components\Controls\Chart\ChartContainer.razor.cs (1)
136
var value =
OtlpHelpers
.GetValue(attributes, filter.Name);
Components\Controls\Chart\PlotlyChart.razor.cs (1)
158
: $"{Loc[nameof(ControlsStrings.PlotlyChartTrace)]}: {
OtlpHelpers
.ToShortenedId(exemplar.TraceId)}";
Components\Dialogs\ExemplarsDialog.razor.cs (1)
58
: $"{Loc[nameof(Resources.Dialogs.ExemplarsDialogTrace)]}: {
OtlpHelpers
.ToShortenedId(exemplar.TraceId)}";
Model\BrowserLinkOutgoingPeerResolver.cs (2)
38
var url =
OtlpHelpers
.GetValue(attributes, "url.full") ??
OtlpHelpers
.GetValue(attributes, "http.url");
Model\MetricsHelpers.cs (1)
39
Message = string.Format(CultureInfo.InvariantCulture, loc[nameof(Dialogs.OpenTraceDialogMessage)],
OtlpHelpers
.ToShortenedId(traceId)),
Model\Otlp\SpanWaterfallViewModel.cs (16)
62
if (!string.IsNullOrEmpty(
OtlpHelpers
.GetValue(span.Attributes, "http.method")))
64
var httpMethod =
OtlpHelpers
.GetValue(span.Attributes, "http.method");
65
var statusCode =
OtlpHelpers
.GetValue(span.Attributes, "http.status_code");
69
else if (!string.IsNullOrEmpty(
OtlpHelpers
.GetValue(span.Attributes, "db.system")))
71
var dbSystem =
OtlpHelpers
.GetValue(span.Attributes, "db.system");
75
else if (!string.IsNullOrEmpty(
OtlpHelpers
.GetValue(span.Attributes, "rpc.system")))
77
var rpcSystem =
OtlpHelpers
.GetValue(span.Attributes, "rpc.system");
78
var rpcService =
OtlpHelpers
.GetValue(span.Attributes, "rpc.service");
79
var rpcMethod =
OtlpHelpers
.GetValue(span.Attributes, "rpc.method");
83
var grpcStatusCode =
OtlpHelpers
.GetValue(span.Attributes, "rpc.grpc.status_code");
95
else if (!string.IsNullOrEmpty(
OtlpHelpers
.GetValue(span.Attributes, "messaging.system")))
97
var messagingSystem =
OtlpHelpers
.GetValue(span.Attributes, "messaging.system");
98
var messagingOperation =
OtlpHelpers
.GetValue(span.Attributes, "messaging.operation");
99
var destinationName =
OtlpHelpers
.GetValue(span.Attributes, "messaging.destination.name");
151
var hasPeerService =
OtlpHelpers
.GetPeerAddress(span.Attributes) != null;
192
return
OtlpHelpers
.GetPeerAddress(span.Attributes);
Model\ResourceOutgoingPeerResolver.cs (1)
69
var address =
OtlpHelpers
.GetPeerAddress(attributes);
Otlp\Model\MetricValues\DimensionScope.cs (5)
34
var start =
OtlpHelpers
.UnixNanoSecondsToDateTime(d.StartTimeUnixNano);
35
var end =
OtlpHelpers
.UnixNanoSecondsToDateTime(d.TimeUnixNano);
82
var start =
OtlpHelpers
.UnixNanoSecondsToDateTime(h.StartTimeUnixNano);
83
var end =
OtlpHelpers
.UnixNanoSecondsToDateTime(h.TimeUnixNano);
124
var start =
OtlpHelpers
.UnixNanoSecondsToDateTime(exemplar.TimeUnixNano);
Otlp\Model\OtlpLogEntry.cs (2)
29
TimeStamp =
OtlpHelpers
.UnixNanoSecondsToDateTime(record.TimeUnixNano);
56
?
OtlpHelpers
.TruncateString(body.GetString(), context.Options.MaxAttributeLength)
Otlp\Model\OtlpTrace.cs (1)
153
TraceId =
OtlpHelpers
.ToHexString(traceId);
Otlp\Storage\TelemetryRepository.cs (5)
409
return
OtlpHelpers
.GetItems(results, context.StartIndex, context.Count);
554
var pagedResults =
OtlpHelpers
.GetItems(results, context.StartIndex, context.Count, copyFunc);
1006
StartTime =
OtlpHelpers
.UnixNanoSecondsToDateTime(span.StartTimeUnixNano),
1007
EndTime =
OtlpHelpers
.UnixNanoSecondsToDateTime(span.EndTimeUnixNano),
1023
Time =
OtlpHelpers
.UnixNanoSecondsToDateTime(e.TimeUnixNano),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
41
return
OtlpHelpers
.ToHexString(id);
Aspire.Dashboard.Tests (14)
Model\ApplicationsSelectHelpersTests.cs (1)
215
var applicationKey =
OtlpHelpers
.GetApplicationKey(resource);
TelemetryRepositoryTests\MetricsTests.cs (1)
310
var end =
OtlpHelpers
.UnixNanoSecondsToDateTime(nanoSeconds);
TelemetryRepositoryTests\OtlpHelpersTests.cs (11)
25
var s =
OtlpHelpers
.GetString(anyValue);
41
var s =
OtlpHelpers
.GetString(anyValue);
54
var s =
OtlpHelpers
.GetString(anyValue);
77
var s =
OtlpHelpers
.GetString(anyValue);
140
var s =
OtlpHelpers
.GetString(anyValue);
153
OtlpHelpers
.CopyKeyValuePairs(
180
OtlpHelpers
.CopyKeyValuePairs(
220
OtlpHelpers
.CopyKeyValuePairs(
264
OtlpHelpers
.CopyKeyValuePairs(
298
OtlpHelpers
.CopyKeyValuePairs(
339
OtlpHelpers
.CopyKeyValuePairs(
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
41
return
OtlpHelpers
.ToHexString(id);