6 references to OtelServiceNameAnnotation
Aspire.Hosting (5)
Dcp\DcpExecutor.cs (4)
1301
containerExec.Annotate(CustomResource.
OtelServiceNameAnnotation
, containerExecutable.Name);
1326
exe.Annotate(CustomResource.
OtelServiceNameAnnotation
, executable.Name);
1370
exe.Annotate(CustomResource.
OtelServiceNameAnnotation
, project.Name);
1860
ctr.Annotate(CustomResource.
OtelServiceNameAnnotation
, container.Name);
OtlpConfigurationExtensions.cs (1)
75
context.EnvironmentVariables["OTEL_SERVICE_NAME"] = "{{- index .Annotations \"" + CustomResource.
OtelServiceNameAnnotation
+ "\" -}}";
Aspire.Hosting.Tests (1)
Dcp\DcpExecutorTests.cs (1)
593
Assert.Equal(expectedName, exe.Metadata.Annotations[CustomResource.
OtelServiceNameAnnotation
]);