15 references to ToShortenedId
aspire (13)
Commands\TelemetryCommandHelpers.cs (1)
240
var text = displayText ?? OtlpHelpers.
ToShortenedId
(traceId);
Commands\TelemetrySpansCommand.cs (1)
263
var shortSpanId = OtlpHelpers.
ToShortenedId
(spanId);
Commands\TelemetryTracesCommand.cs (1)
380
var shortenedSpanId = OtlpHelpers.
ToShortenedId
(span.SpanId);
src\Shared\ConsoleLogs\SharedAIHelpers.cs (10)
224
attributesObj[attr.Key!] = context.AddValue(attrValue, id => $@"Duplicate of attribute ""{id.Key}"" for span {OtlpHelpers.
ToShortenedId
(id.SpanId)}", (SpanId: spanId, attr.Key));
233
["trace_id"] = OtlpHelpers.
ToShortenedId
(link.TraceId ?? string.Empty),
234
["span_id"] = OtlpHelpers.
ToShortenedId
(link.SpanId ?? string.Empty)
251
["span_id"] = OtlpHelpers.
ToShortenedId
(spanId),
252
["parent_span_id"] = span.ParentSpanId is { } id ? OtlpHelpers.
ToShortenedId
(id) : null,
254
["name"] = context.AddValue(span.Name, sId => $@"Duplicate of ""name"" for span {OtlpHelpers.
ToShortenedId
(sId)}", spanId),
256
["status_message"] = context.AddValue(span.Status?.Message, sId => $@"Duplicate of ""status_message"" for span {OtlpHelpers.
ToShortenedId
(sId)}", spanId),
267
var traceId = OtlpHelpers.
ToShortenedId
(trace.TraceId);
595
["span_id"] = OtlpHelpers.
ToShortenedId
(logEntry.LogRecord.SpanId ?? string.Empty),
596
["trace_id"] = OtlpHelpers.
ToShortenedId
(logEntry.LogRecord.TraceId ?? string.Empty),
Aspire.Cli.Tests (2)
Commands\TelemetryCommandTests.cs (2)
180
var result = OtlpHelpers.
ToShortenedId
("abc1234567890");
188
var result = OtlpHelpers.
ToShortenedId
("abc");