1 write to ApplicationName
Aspire.Dashboard (1)
Otlp\Model\OtlpApplication.cs (1)
35
ApplicationName
= name;
41 references to ApplicationName
Aspire.Dashboard (12)
Components\ResourcesGridColumns\UnreadLogErrorsBadge.razor.cs (3)
48
var applicationName = applications.Count(a => a.
ApplicationName
== application.
ApplicationName
) > 1
50
: application.
ApplicationName
;
Otlp\Model\OtlpApplication.cs (6)
26
public ApplicationKey ApplicationKey => new ApplicationKey(
ApplicationName
, InstanceId);
148
.GroupBy(application => application.
ApplicationName
, StringComparers.ResourceName)
160
if (string.Equals(item.
ApplicationName
, app.
ApplicationName
, StringComparisons.ResourceName))
179
return $"{item.
ApplicationName
}-{instanceId}";
184
return app.
ApplicationName
;
Otlp\Model\OtlpApplicationView.cs (1)
46
new OtlpDisplayField { DisplayName = "service.name", Key = KnownResourceFields.ServiceNameField, Value = Application.
ApplicationName
},
Otlp\Model\OtlpLogEntry.cs (1)
104
KnownResourceFields.ServiceNameField => log.ApplicationView.Application.
ApplicationName
,
Otlp\Model\OtlpTrace.cs (1)
105
return $"{existingSpan.Source.Application.
ApplicationName
}: {existingSpan.Name}";
Aspire.Dashboard.Tests (29)
TelemetryRepositoryTests\ApplicationTests.cs (10)
31
Assert.Equal("app1", app.
ApplicationName
);
36
Assert.Equal("app2", app.
ApplicationName
);
47
Assert.Equal("app1", app1.
ApplicationName
);
51
Assert.Equal("app2", app2.
ApplicationName
);
74
Assert.Equal("app1", app.
ApplicationName
);
79
Assert.Equal("app1", app.
ApplicationName
);
90
Assert.Equal("app2", app.
ApplicationName
);
112
Assert.Equal("app1", app.
ApplicationName
);
117
Assert.Equal("app1", app.
ApplicationName
);
122
Assert.Equal("app2", app.
ApplicationName
);
TelemetryRepositoryTests\LogTests.cs (5)
62
Assert.Equal("TestService", app.
ApplicationName
);
485
Assert.Equal("TestService", app.
ApplicationName
);
657
Assert.Equal("TestService", app.
ApplicationName
);
869
Assert.Equal("App1", app.
ApplicationName
);
874
Assert.Equal("App2", app.
ApplicationName
);
TelemetryRepositoryTests\MetricsTests.cs (5)
66
Assert.Equal("TestService", app.
ApplicationName
);
139
Assert.Equal("TestService", app.
ApplicationName
);
255
Assert.Equal("TestService", app.
ApplicationName
);
353
Assert.Equal("TestService", app.
ApplicationName
);
460
Assert.Equal("TestService", app.
ApplicationName
);
TelemetryRepositoryTests\TraceTests.cs (9)
73
Assert.Equal("TestService", app.
ApplicationName
);
132
Assert.Equal("TestService", app.
ApplicationName
);
187
Assert.Equal("TestService", app.
ApplicationName
);
242
Assert.Equal("TestService", app.
ApplicationName
);
313
Assert.Equal("TestService", app.
ApplicationName
);
390
Assert.Equal("TestService", app.
ApplicationName
);
807
Assert.Equal("TestService", app.
ApplicationName
);
931
Assert.Equal("TestService", app.
ApplicationName
);
1478
Assert.Equal("TestService", application.
ApplicationName
);