2 instantiations of OtlpApplicationView
Aspire.Dashboard (1)
Otlp\Model\OtlpApplication.cs (1)
287
var view = new
OtlpApplicationView
(this, attributes);
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
28
var view = new
OtlpApplicationView
(app, new RepeatedField<KeyValue>
20 references to OtlpApplicationView
Aspire.Dashboard (19)
Components\Pages\StructuredLogs.razor.cs (1)
335
private string GetResourceName(
OtlpApplicationView
app) => OtlpApplication.GetResourceName(app.Application, _applications);
Components\Pages\TraceDetail.razor.cs (1)
285
private string GetResourceName(
OtlpApplicationView
app) => OtlpApplication.GetResourceName(app, _applications);
Components\Pages\Traces.razor.cs (1)
220
private string GetResourceName(
OtlpApplicationView
app) => OtlpApplication.GetResourceName(app, _applications);
Otlp\Model\OtlpApplication.cs (6)
31
private readonly ConcurrentDictionary<KeyValuePair<string, string>[],
OtlpApplicationView
> _applicationViews = new(ApplicationViewKeyComparer.Instance);
247
public static string GetResourceName(
OtlpApplicationView
app, List<OtlpApplication> allApplications) =>
282
internal List<
OtlpApplicationView
> GetViews() => _applicationViews.Values.ToList();
284
internal
OtlpApplicationView
GetView(RepeatedField<KeyValue> attributes)
287
var
view = new OtlpApplicationView(this, attributes);
289
if (_applicationViews.TryGetValue(view.Properties, out
var
applicationView))
Otlp\Model\OtlpLogEntry.cs (2)
22
public
OtlpApplicationView
ApplicationView { get; }
26
public OtlpLogEntry(LogRecord record,
OtlpApplicationView
logApp, OtlpScope scope, OtlpContext context)
Otlp\Model\OtlpSpan.cs (1)
25
public
OtlpApplicationView
Source { get; }
Otlp\Storage\TelemetryRepository.cs (7)
184
private
OtlpApplicationView
GetOrAddApplicationView(Resource resource)
272
OtlpApplicationView
applicationView;
312
public void AddLogsCore(AddContext context,
OtlpApplicationView
applicationView, RepeatedField<ScopeLogs> scopeLogs)
805
OtlpApplicationView
applicationView;
827
OtlpApplicationView
applicationView;
872
internal void AddTracesCore(AddContext context,
OtlpApplicationView
applicationView, RepeatedField<ScopeSpans> scopeSpans)
1076
private static OtlpSpan CreateSpan(
OtlpApplicationView
applicationView, Span span, OtlpTrace trace, OtlpScope scope, OtlpContext context)
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
28
var
view = new OtlpApplicationView(app, new RepeatedField<KeyValue>