63 references to OtlpSpan
Aspire.Dashboard (61)
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 (1)
97private static Icon GetSpanIcon(OtlpSpan span)
Model\MetricsHelpers.cs (2)
18Func<string, string, OtlpSpan?> getSpan, 24var span = getSpan(traceId, spanId);
Model\Otlp\SpanWaterfallViewModel.cs (5)
50public static string GetTitle(OtlpSpan span, List<OtlpApplication> allApplications) 55public static string GetDisplaySummary(OtlpSpan span) 125TraceHelpers.VisitSpans(trace, (OtlpSpan span, SpanWaterfallViewModelState s) => 137static SpanWaterfallViewModel CreateViewModel(OtlpSpan span, int depth, bool hidden, TraceDetailState state) 180private static string? ResolveUninstrumentedPeerName(OtlpSpan span, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers)
Model\Otlp\TelemetryFilter.cs (2)
131public bool Apply(OtlpSpan span) 133var fieldValue = OtlpSpan.GetFieldValue(span, Field);
Model\TraceHelpers.cs (7)
13public static void VisitSpans<TState>(OtlpTrace trace, Func<OtlpSpan, TState, TState> spanAction, TState state) 19var orderByFunc = static (OtlpSpan s) => s.StartTime; 28static void Visit(OtlpSpanCollection allSpans, OtlpSpan span, Func<OtlpSpan, TState, TState> spanAction, TState state, Func<OtlpSpan, DateTime> orderByFunc) 30foreach (var childSpan in OtlpSpan.GetChildSpans(span, allSpans).OrderBy(orderByFunc)) 50VisitSpans(trace, (OtlpSpan span, OrderedApplicationsState state) =>
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)
73foreach (var span in trace.Spans) 529foreach (var span in t.Spans) 579foreach (var span in trace.Spans) 581var value = OtlpSpan.GetFieldValue(span, attributeName); 656private OtlpSpan? GetSpanUnsynchronized(string traceId, string spanId) 663foreach (var span in trace.Spans) 675public OtlpSpan? GetSpan(string traceId, string spanId) 691foreach (var span in t.Spans) 806var newSpan = CreateSpan(applicationView, span, trace, scope, _otlpContext); 824var linkedSpan = GetSpanUnsynchronized(link.TraceId, link.SpanId); 950foreach (var span in trace.Spans) 976private static OtlpSpan CreateSpan(OtlpApplicationView applicationView, Span span, OtlpTrace trace, OtlpScope scope, OtlpContext context) 1000var newSpan = new OtlpSpan(applicationView, trace, scope)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
289public static OtlpSpan CreateSpan(OtlpApplication app, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate)
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
289public static OtlpSpan CreateSpan(OtlpApplication app, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate)