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