56 references to OtlpSpan
Aspire.Dashboard (56)
Components\Controls\Chart\ChartBase.cs (5)
60private Dictionary<SpanKey, OtlpSpan> _currentCache = new Dictionary<SpanKey, OtlpSpan>(); 61private Dictionary<SpanKey, OtlpSpan> _newCache = new Dictionary<SpanKey, OtlpSpan>(); 511_newCache = new Dictionary<SpanKey, OtlpSpan>();
Components\Pages\TraceDetail.razor.cs (5)
99private static Icon GetSpanIcon(OtlpSpan span) 135static SpanWaterfallViewModel AddSelfAndChildren(List<SpanWaterfallViewModel> orderedSpans, OtlpSpan span, int depth, bool hidden, TraceDetailState state, Func<OtlpSpan, int, bool, TraceDetailState, SpanWaterfallViewModel> createViewModel) 150static SpanWaterfallViewModel CreateViewModel(OtlpSpan span, int depth, bool hidden, TraceDetailState state) 193private static string? ResolveUninstrumentedPeerName(OtlpSpan span, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers)
Components\Pages\Traces.razor.cs (1)
95private string GetSpansTooltip(IGrouping<OtlpApplication, OtlpSpan> applicationSpans)
Model\MetricsHelpers.cs (2)
18Func<string, string, OtlpSpan?> getSpan, 24var span = getSpan(traceId, spanId);
Model\Otlp\SpanWaterfallViewModel.cs (2)
50public static string GetTitle(OtlpSpan span, List<OtlpApplication> allApplications) 55public static string GetDisplaySummary(OtlpSpan span)
Model\Otlp\TelemetryFilter.cs (2)
131public bool Apply(OtlpSpan span) 133var fieldValue = OtlpSpan.GetFieldValue(span, Field);
Otlp\Model\OtlpHelpers.cs (5)
337var address = GetValue(values, OtlpSpan.PeerServiceAttributeKey); 344if (GetValue(values, OtlpSpan.ServerAddressAttributeKey) is { } server) 346if (GetValue(values, OtlpSpan.ServerPortAttributeKey) is { } serverPort) 354if (GetValue(values, OtlpSpan.NetPeerNameAttributeKey) is { } peer) 356if (GetValue(values, OtlpSpan.NetPeerPortAttributeKey) is { } peerPort)
Otlp\Model\OtlpSpanCollection.cs (4)
8public sealed class OtlpSpanCollection : KeyedCollection<string, OtlpSpan> 17protected override string GetKeyForItem(OtlpSpan item) 22public new List<OtlpSpan>.Enumerator GetEnumerator() 25return ((List<OtlpSpan>)this.Items).GetEnumerator();
Otlp\Model\OtlpTrace.cs (17)
11private OtlpSpan? _rootSpan; 17public OtlpSpan FirstSpan => Spans[0]; // There should always be at least one span in a trace. 19public OtlpSpan? RootSpan => _rootSpan; 26foreach (var span in Spans) 39public int CalculateDepth(OtlpSpan span) 42var currentSpan = span; 53public void AddSpan(OtlpSpan span) 85foreach (var existingSpan in Spans) 103static string BuildFullName(OtlpSpan existingSpan) 109private static bool HasCircularReference(OtlpSpan span) 119var currentSpan = span; 140var span = Spans[i]; 160foreach (var item in trace.Spans) 162newTrace.AddSpan(OtlpSpan.Clone(item, newTrace)); 173private sealed class SpanStartDateComparer : IComparer<OtlpSpan> 177public int Compare(OtlpSpan? x, OtlpSpan? y)
Otlp\Storage\TelemetryRepository.cs (13)
72foreach (var span in trace.Spans) 528foreach (var span in t.Spans) 578foreach (var span in trace.Spans) 580var value = OtlpSpan.GetFieldValue(span, attributeName); 655private OtlpSpan? GetSpanUnsynchronized(string traceId, string spanId) 662foreach (var span in trace.Spans) 674public OtlpSpan? GetSpan(string traceId, string spanId) 690foreach (var span in t.Spans) 805var newSpan = CreateSpan(applicationView, span, trace, scope, _otlpContext); 823var linkedSpan = GetSpanUnsynchronized(link.TraceId, link.SpanId); 949foreach (var span in trace.Spans) 975private static OtlpSpan CreateSpan(OtlpApplicationView applicationView, Span span, OtlpTrace trace, OtlpScope scope, OtlpContext context) 999var newSpan = new OtlpSpan(applicationView, trace, scope)