37 references to ToShortenedId
Aspire.Dashboard (37)
Components\Controls\Chart\PlotlyChart.razor.cs (1)
164title = $"{Loc[nameof(ControlsStrings.PlotlyChartTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Controls\SpanActions.razor.cs (1)
82AIPromptsLoc.GetString(nameof(AIPrompts.PromptAnalyzeSpan), OtlpHelpers.ToShortenedId(SpanViewModel.Span.SpanId)),
Components\Controls\TraceActions.razor.cs (1)
84AIPromptsLoc.GetString(nameof(AIPrompts.PromptAnalyzeTrace), OtlpHelpers.ToShortenedId(Trace.TraceId)),
Components\Dialogs\ExemplarsDialog.razor.cs (1)
58: $"{Loc[nameof(Resources.Dialogs.ExemplarsDialogTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Pages\TraceDetail.razor.cs (1)
582AIPromptsLoc.GetString(nameof(AIPrompts.PromptAnalyzeTrace), OtlpHelpers.ToShortenedId(trace.TraceId)),
Components_Controls_SpanDetails_razor.g.cs (3)
1752__builder6.AddContent(178, OtlpHelpers.ToShortenedId(context.SpanId) 2132__builder6.AddContent(220, OtlpHelpers.ToShortenedId(context.SpanId) 2163: $"{Loc[nameof(ControlsStrings.SpanDetailsSpanPrefix)]}: {OtlpHelpers.ToShortenedId(context.SpanId)}";
Components_Pages_StructuredLogs_razor.g.cs (1)
1710__builder6.AddContent(184, OtlpHelpers.ToShortenedId(context.TraceId)
Components_Pages_TraceDetail_razor.g.cs (2)
365__builder2.AddContent(25, OtlpHelpers.ToShortenedId(trace.TraceId) 1078subtitle = OtlpHelpers.ToShortenedId(spanVm.Span.SpanId);
Components_Pages_Traces_razor.g.cs (1)
1482__builder5.AddContent(146, OtlpHelpers.ToShortenedId(context.TraceId)
Model\Assistant\AIHelpers.cs (12)
47span_id = OtlpHelpers.ToShortenedId(s.SpanId), 48parent_span_id = s.ParentSpanId is { } id ? OtlpHelpers.ToShortenedId(id) : null, 50name = context.AddValue(s.Name, id => $@"Duplicate of ""name"" for span {OtlpHelpers.ToShortenedId(id)}", s.SpanId), 52status_message = context.AddValue(s.StatusMessage, id => $@"Duplicate of ""status_message"" for span {OtlpHelpers.ToShortenedId(id)}", s.SpanId), 57.ToDictionary(a => a.Key, a => context.AddValue(MapOtelAttributeValue(a), id => $@"Duplicate of attribute ""{id.Key}"" for span {OtlpHelpers.ToShortenedId(id.SpanId)}", (s.SpanId, a.Key))), 58links = s.Links.Select(l => new { trace_id = OtlpHelpers.ToShortenedId(l.TraceId), span_id = OtlpHelpers.ToShortenedId(l.SpanId) }).ToList(), 59back_links = s.BackLinks.Select(l => new { source_trace_id = OtlpHelpers.ToShortenedId(l.SourceTraceId), source_span_id = OtlpHelpers.ToShortenedId(l.SourceSpanId) }).ToList() 63trace_id = OtlpHelpers.ToShortenedId(trace.TraceId), 273span_id = OtlpHelpers.ToShortenedId(l.SpanId), 274trace_id = OtlpHelpers.ToShortenedId(l.TraceId),
Model\Assistant\AssistantChatDataContext.cs (3)
94await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceFailure), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 98await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTrace), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 211await InvokeToolCallbackAsync(nameof(GetTraceStructuredLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceStructuredLogs), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false);
Model\Assistant\Markdown\AspireEnrichmentParser.cs (2)
167linkInline.AppendChild(new CodeInline(OtlpHelpers.ToShortenedId(trace.TraceId))); 210linkInline.AppendChild(new CodeInline(OtlpHelpers.ToShortenedId(span.SpanId)));
Model\Assistant\Prompts\IceBreakersBuilder.cs (4)
295_loc.GetString(nameof(AIPrompts.PromptAnalyzeTrace), OtlpHelpers.ToShortenedId(trace.TraceId)), 300_loc.GetString(nameof(AIPrompts.PromptAnalyzeTrace), OtlpHelpers.ToShortenedId(trace.TraceId)), 310_loc.GetString(nameof(AIPrompts.PromptAnalyzeSpan), OtlpHelpers.ToShortenedId(span.SpanId)), 315_loc.GetString(nameof(AIPrompts.PromptAnalyzeSpan), OtlpHelpers.ToShortenedId(span.SpanId)),
Model\Assistant\Prompts\KnownChatMessages.cs (3)
288My application has written a distributed trace with trace_id `{OtlpHelpers.ToShortenedId(trace.TraceId)}`. 311My application has written a distributed trace with trace_id `{OtlpHelpers.ToShortenedId(span.TraceId)}`. 312Summarize the distributed span `{OtlpHelpers.ToShortenedId(span.SpanId)}`. Focus on errors.
Model\TraceLinkHelpers.cs (1)
28string.Format(CultureInfo.InvariantCulture, loc[nameof(Dialogs.OpenSpanDialogMessage)], OtlpHelpers.ToShortenedId(spanId)),