60 references to OtlpHelpers
Aspire.Dashboard (45)
Components\Controls\Chart\ChartContainer.razor.cs (1)
153var value = OtlpHelpers.GetValue(attributes, filter.Name);
Components\Controls\Chart\PlotlyChart.razor.cs (1)
164title = $"{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\Otlp\SpanWaterfallViewModel.cs (2)
151var hasPeerService = OtlpHelpers.GetPeerAddress(span.Attributes) != null; 225return OtlpHelpers.GetPeerAddress(span.Attributes);
Model\ResourceOutgoingPeerResolver.cs (1)
152var address = OtlpHelpers.GetPeerAddress(attributes);
Model\StructureLogsDetailsViewModel.cs (2)
15var eventName = OtlpHelpers.GetValue(logEntry.Attributes, "event.name") 16?? OtlpHelpers.GetValue(logEntry.Attributes, "logrecord.event.name")
Model\TraceLinkHelpers.cs (1)
28string.Format(CultureInfo.InvariantCulture, loc[nameof(Dialogs.OpenSpanDialogMessage)], OtlpHelpers.ToShortenedId(spanId)),
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.TryGetOrAddScope(_meters, sm.Scope, Context, TelemetryType.Metrics, 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)
60? OtlpHelpers.TruncateString(body.GetString(), context.Options.MaxAttributeLength) 80return OtlpHelpers.UnixNanoSecondsToDateTime(resolvedTimeUnixNano);
Otlp\Model\OtlpSpan.cs (14)
144if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "http.method"))) 146var httpMethod = OtlpHelpers.GetValue(span.Attributes, "http.method"); 147var statusCode = OtlpHelpers.GetValue(span.Attributes, "http.status_code"); 151else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "db.system"))) 153var dbSystem = OtlpHelpers.GetValue(span.Attributes, "db.system"); 157else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "rpc.system"))) 159var rpcSystem = OtlpHelpers.GetValue(span.Attributes, "rpc.system"); 160var rpcService = OtlpHelpers.GetValue(span.Attributes, "rpc.service"); 161var rpcMethod = OtlpHelpers.GetValue(span.Attributes, "rpc.method"); 165var grpcStatusCode = OtlpHelpers.GetValue(span.Attributes, "rpc.grpc.status_code"); 178else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "messaging.system"))) 180var messagingSystem = OtlpHelpers.GetValue(span.Attributes, "messaging.system"); 181var messagingOperation = OtlpHelpers.GetValue(span.Attributes, "messaging.operation"); 182var destinationName = OtlpHelpers.GetValue(span.Attributes, "messaging.destination.name");
Otlp\Model\OtlpTrace.cs (1)
160TraceId = OtlpHelpers.ToHexString(traceId);
Otlp\Storage\TelemetryRepository.cs (9)
339if (!OtlpHelpers.TryGetOrAddScope(_logScopes, sl.Scope, _otlpContext, TelemetryType.Logs, out var scope)) 429return OtlpHelpers.GetItems(results, context.StartIndex, context.Count, _logs.IsFull); 557var pagedResults = OtlpHelpers.GetItems(results, context.StartIndex, context.Count, _traces.IsFull, copyFunc); 809if (OtlpHelpers.MatchTelemetryId(traceId, trace.TraceId)) 952if (!OtlpHelpers.TryGetOrAddScope(_traceScopes, scopeSpan.Scope, _otlpContext, TelemetryType.Traces, out var scope)) 1110var hasPeerService = OtlpHelpers.GetPeerAddress(span.Attributes) != null; 1229StartTime = OtlpHelpers.UnixNanoSecondsToDateTime(span.StartTimeUnixNano), 1230EndTime = OtlpHelpers.UnixNanoSecondsToDateTime(span.EndTimeUnixNano), 1246Time = 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);