58 references to OtlpHelpers
Aspire.Dashboard (43)
Components\Controls\Chart\ChartContainer.razor.cs (1)
153var 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)
37var url = OtlpHelpers.GetValue(attributes, "url.full") ?? OtlpHelpers.GetValue(attributes, "http.url");
Model\MetricsHelpers.cs (1)
41MarkupMessage = new MarkupString(string.Format(CultureInfo.InvariantCulture, loc[nameof(Dialogs.OpenTraceDialogMessage)], OtlpHelpers.ToShortenedId(traceId))),
Model\Otlp\SpanWaterfallViewModel.cs (2)
147var hasPeerService = OtlpHelpers.GetPeerAddress(span.Attributes) != null; 195return OtlpHelpers.GetPeerAddress(span.Attributes);
Model\ResourceOutgoingPeerResolver.cs (1)
104var address = OtlpHelpers.GetPeerAddress(attributes);
Otlp\Model\MetricValues\DimensionScope.cs (5)
34var start = OtlpHelpers.UnixNanoSecondsToDateTime(d.StartTimeUnixNano); 35var end = OtlpHelpers.UnixNanoSecondsToDateTime(d.TimeUnixNano); 82var start = OtlpHelpers.UnixNanoSecondsToDateTime(h.StartTimeUnixNano); 83var end = OtlpHelpers.UnixNanoSecondsToDateTime(h.TimeUnixNano); 131var start = OtlpHelpers.UnixNanoSecondsToDateTime(exemplar.TimeUnixNano);
Otlp\Model\OtlpApplication.cs (1)
56if (!OtlpHelpers.TryAddScope(_meters, sm.Scope, Context, out var scope))
Otlp\Model\OtlpInstrument.cs (2)
56OtlpHelpers.CopyKeyValuePairs(attributes, Summary.Parent.Attributes, Context, out var copyCount, ref tempAttributes); 93var currentDimensionValue = OtlpHelpers.GetValue(durableAttributes, key);
Otlp\Model\OtlpLogEntry.cs (2)
58? OtlpHelpers.TruncateString(body.GetString(), context.Options.MaxAttributeLength) 78return OtlpHelpers.UnixNanoSecondsToDateTime(resolvedTimeUnixNano);
Otlp\Model\OtlpSpan.cs (14)
138if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "http.method"))) 140var httpMethod = OtlpHelpers.GetValue(span.Attributes, "http.method"); 141var statusCode = OtlpHelpers.GetValue(span.Attributes, "http.status_code"); 145else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "db.system"))) 147var dbSystem = OtlpHelpers.GetValue(span.Attributes, "db.system"); 151else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "rpc.system"))) 153var rpcSystem = OtlpHelpers.GetValue(span.Attributes, "rpc.system"); 154var rpcService = OtlpHelpers.GetValue(span.Attributes, "rpc.service"); 155var rpcMethod = OtlpHelpers.GetValue(span.Attributes, "rpc.method"); 159var grpcStatusCode = OtlpHelpers.GetValue(span.Attributes, "rpc.grpc.status_code"); 172else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "messaging.system"))) 174var messagingSystem = OtlpHelpers.GetValue(span.Attributes, "messaging.system"); 175var messagingOperation = OtlpHelpers.GetValue(span.Attributes, "messaging.operation"); 176var destinationName = OtlpHelpers.GetValue(span.Attributes, "messaging.destination.name");
Otlp\Model\OtlpTrace.cs (1)
154TraceId = OtlpHelpers.ToHexString(traceId);
Otlp\Storage\TelemetryRepository.cs (9)
335if (!OtlpHelpers.TryAddScope(_logScopes, sl.Scope, _otlpContext, out var scope)) 424return OtlpHelpers.GetItems(results, context.StartIndex, context.Count, _logs.IsFull); 552var pagedResults = OtlpHelpers.GetItems(results, context.StartIndex, context.Count, _traces.IsFull, copyFunc); 783if (OtlpHelpers.MatchTelemetryId(traceId, trace.TraceId)) 916if (!OtlpHelpers.TryAddScope(_traceScopes, scopeSpan.Scope, _otlpContext, out var scope)) 1073var hasPeerService = OtlpHelpers.GetPeerAddress(span.Attributes) != null; 1192StartTime = OtlpHelpers.UnixNanoSecondsToDateTime(span.StartTimeUnixNano), 1193EndTime = OtlpHelpers.UnixNanoSecondsToDateTime(span.EndTimeUnixNano), 1209Time = OtlpHelpers.UnixNanoSecondsToDateTime(e.TimeUnixNano),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
44return OtlpHelpers.ToHexString(id);
Aspire.Dashboard.Tests (14)
Model\ApplicationsSelectHelpersTests.cs (1)
215var applicationKey = OtlpHelpers.GetApplicationKey(resource);
TelemetryRepositoryTests\MetricsTests.cs (1)
318var end = OtlpHelpers.UnixNanoSecondsToDateTime(nanoSeconds);
TelemetryRepositoryTests\OtlpHelpersTests.cs (11)
25var s = OtlpHelpers.GetString(anyValue); 41var s = OtlpHelpers.GetString(anyValue); 54var s = OtlpHelpers.GetString(anyValue); 90var s = OtlpHelpers.GetString(anyValue); 153var s = OtlpHelpers.GetString(anyValue); 166OtlpHelpers.CopyKeyValuePairs( 193OtlpHelpers.CopyKeyValuePairs( 233OtlpHelpers.CopyKeyValuePairs( 277OtlpHelpers.CopyKeyValuePairs( 311OtlpHelpers.CopyKeyValuePairs( 352OtlpHelpers.CopyKeyValuePairs(
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
44return OtlpHelpers.ToHexString(id);