13 instantiations of OtlpApplication
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
212
return new
OtlpApplication
(key.Name, key.InstanceId!, _otlpContext);
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
27
var app = new
OtlpApplication
("app1", "instance1", context);
Aspire.Dashboard.Tests (11)
Model\ApplicationsSelectHelpersTests.cs (1)
217
return new
OtlpApplication
(applicationKey.Name, applicationKey.InstanceId!, TelemetryTestHelpers.CreateContext());
Model\SpanWaterfallViewModelTests.cs (2)
19
var app1 = new
OtlpApplication
("app1", "instance", context);
20
var app2 = new
OtlpApplication
("app2", "instance", context);
Model\TraceHelpersTests.cs (8)
19
var app1 = new
OtlpApplication
("app1", "instance", context);
40
var app1 = new
OtlpApplication
("app1", "instance", context);
41
var app2 = new
OtlpApplication
("app2", "instance", context);
67
var app1 = new
OtlpApplication
("app1", "instance", context);
68
var app2 = new
OtlpApplication
("app2", "instance", context);
94
var app1 = new
OtlpApplication
("app1", "instance", context);
95
var app2 = new
OtlpApplication
("app2", "instance", context);
96
var app3 = new
OtlpApplication
("app3", "instance", context);
80 references to OtlpApplication
Aspire.Dashboard (54)
Components\Pages\Metrics.razor.cs (1)
25
private List<
OtlpApplication
> _applications = default!;
Components\Pages\StructuredLogs.razor.cs (2)
35
private List<
OtlpApplication
> _applications = default!;
329
private string GetResourceName(OtlpApplicationView app) =>
OtlpApplication
.GetResourceName(app.Application, _applications);
Components\Pages\TraceDetail.razor.cs (2)
29
private List<
OtlpApplication
> _applications = default!;
273
private string GetResourceName(OtlpApplicationView app) =>
OtlpApplication
.GetResourceName(app, _applications);
Components\Pages\Traces.razor.cs (4)
34
private List<
OtlpApplication
> _applications = default!;
213
private string GetResourceName(
OtlpApplication
app) =>
OtlpApplication
.GetResourceName(app, _applications);
214
private string GetResourceName(OtlpApplicationView app) =>
OtlpApplication
.GetResourceName(app, _applications);
Components\ResourcesGridColumns\UnreadLogErrorsBadge.razor.cs (1)
36
var
application = TelemetryRepository.GetApplicationByCompositeName(resource.Name);
Model\Otlp\ApplicationsSelectHelpers.cs (4)
43
public static List<SelectViewModel<ResourceTypeDetails>> CreateApplications(List<
OtlpApplication
> applications)
45
var replicasByApplicationName =
OtlpApplication
.GetReplicasByApplicationName(applications);
54
var
app = replicas.Single();
76
Name =
OtlpApplication
.GetResourceName(replica, applications)
Model\Otlp\SpanWaterfallViewModel.cs (3)
35
public string GetTooltip(List<
OtlpApplication
> allApplications)
50
public static string GetTitle(OtlpSpan span, List<
OtlpApplication
> allApplications)
52
return $"{
OtlpApplication
.GetResourceName(span.Source, allApplications)}: {GetDisplaySummary(span)}";
Model\TraceHelpers.cs (3)
48
var appFirstTimes = new Dictionary<
OtlpApplication
, OrderedApplication>();
86
public sealed class OrderedApplication(
OtlpApplication
application, int index, DateTime firstDateTime, int totalSpans, int erroredSpans)
88
public
OtlpApplication
Application { get; } = application;
Otlp\Model\OtlpApplication.cs (6)
145
public static Dictionary<string, List<
OtlpApplication
>> GetReplicasByApplicationName(IEnumerable<
OtlpApplication
> allApplications)
152
public static string GetResourceName(OtlpApplicationView app, List<
OtlpApplication
> allApplications) =>
155
public static string GetResourceName(
OtlpApplication
app, List<
OtlpApplication
> allApplications)
158
foreach (
var
item in allApplications)
Otlp\Model\OtlpApplicationView.cs (4)
16
public
OtlpApplication
Application { get; }
19
public OtlpApplicationView(
OtlpApplication
application, RepeatedField<KeyValue> attributes)
27
case
OtlpApplication
.SERVICE_NAME:
28
case
OtlpApplication
.SERVICE_INSTANCE_ID:
Otlp\Model\OtlpHelpers.cs (3)
35
if (attribute.Key ==
OtlpApplication
.SERVICE_INSTANCE_ID)
39
if (attribute.Key ==
OtlpApplication
.SERVICE_NAME)
43
if (attribute.Key ==
OtlpApplication
.PROCESS_EXECUTABLE_NAME)
Otlp\Storage\TelemetryRepository.cs (21)
34
private readonly ConcurrentDictionary<ApplicationKey,
OtlpApplication
> _applications = new();
39
private readonly HashSet<(
OtlpApplication
Application, string PropertyKey)> _logPropertyKeys = new();
40
private readonly HashSet<(
OtlpApplication
Application, string PropertyKey)> _tracePropertyKeys = new();
82
public List<
OtlpApplication
> GetApplications()
87
public List<
OtlpApplication
> GetApplicationsByName(string name)
92
private List<
OtlpApplication
> GetApplicationsCore(string? name)
94
IEnumerable<
OtlpApplication
> results = _applications.Values;
104
public
OtlpApplication
? GetApplicationByCompositeName(string compositeName)
117
public
OtlpApplication
? GetApplication(ApplicationKey key)
124
_applications.TryGetValue(key, out
var
application);
128
public List<
OtlpApplication
> GetApplications(ApplicationKey key)
169
foreach (
var
application in applications)
191
if (_applications.TryGetValue(key, out
var
application))
205
(
OtlpApplication
, bool) GetOrAddApplication(ApplicationKey key, Resource resource)
209
var
application = _applications.GetOrAdd(key, _ =>
383
List<
OtlpApplication
>? applications = null;
417
private static bool MatchApplications(
OtlpApplication
application, List<
OtlpApplication
> applications)
431
List<
OtlpApplication
>? applications = null;
458
List<
OtlpApplication
>? applications = null;
485
List<
OtlpApplication
>? applications = null;
Aspire.Dashboard.Components.Tests (3)
Controls\StructuredLogDetailsTests.cs (2)
27
var
app = new OtlpApplication("app1", "instance1", context);
32
new KeyValue { Key =
OtlpApplication
.SERVICE_NAME, Value = new AnyValue { StringValue = "value1" } }
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
289
public static OtlpSpan CreateSpan(
OtlpApplication
app, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate)
Aspire.Dashboard.Tests (23)
Model\ApplicationsSelectHelpersTests.cs (6)
23
var appVMs = ApplicationsSelectHelpers.CreateApplications(new List<
OtlpApplication
>
68
var appVMs = ApplicationsSelectHelpers.CreateApplications(new List<
OtlpApplication
>
110
var apps = new Dictionary<string,
OtlpApplication
>();
134
var appVMs = ApplicationsSelectHelpers.CreateApplications(new List<
OtlpApplication
>
171
var appVMs = ApplicationsSelectHelpers.CreateApplications(new List<
OtlpApplication
>
205
private static
OtlpApplication
CreateOtlpApplication(string name, string instanceId)
Model\SpanWaterfallViewModelTests.cs (2)
19
var
app1 = new OtlpApplication("app1", "instance", context);
20
var
app2 = new OtlpApplication("app2", "instance", context);
Model\TraceHelpersTests.cs (8)
19
var
app1 = new OtlpApplication("app1", "instance", context);
40
var
app1 = new OtlpApplication("app1", "instance", context);
41
var
app2 = new OtlpApplication("app2", "instance", context);
67
var
app1 = new OtlpApplication("app1", "instance", context);
68
var
app2 = new OtlpApplication("app2", "instance", context);
94
var
app1 = new OtlpApplication("app1", "instance", context);
95
var
app2 = new OtlpApplication("app2", "instance", context);
96
var
app3 = new OtlpApplication("app3", "instance", context);
TelemetryRepositoryTests\ApplicationTests.cs (5)
41
var
app1 = repository.GetApplicationByCompositeName("app1-TestId");
42
var
app2 = repository.GetApplicationByCompositeName("APP2-TESTID");
43
var
notFound = repository.GetApplicationByCompositeName("APP2_TESTID");
141
var instance1Name =
OtlpApplication
.GetResourceName(applications[0], applications);
142
var instance2Name =
OtlpApplication
.GetResourceName(applications[1], applications);
TelemetryRepositoryTests\TraceTests.cs (1)
1477
var
application = Assert.Single(repository.GetApplications());
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
289
public static OtlpSpan CreateSpan(
OtlpApplication
app, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate)