5 references to OtelServiceNameAnnotation
Aspire.Hosting (4)
Dcp\ContainerCreator.cs (2)
174
ctr.Annotate(CustomResource.
OtelServiceNameAnnotation
, container.Name);
288
containerExec.Annotate(CustomResource.
OtelServiceNameAnnotation
, containerExecutable.Name);
Dcp\ExecutableCreator.cs (1)
257
executable.Annotate(CustomResource.
OtelServiceNameAnnotation
, resource.Name);
OtlpConfigurationExtensions.cs (1)
92
context.EnvironmentVariables[KnownOtelConfigNames.ServiceName] = "{{- index .Annotations \"" + CustomResource.
OtelServiceNameAnnotation
+ "\" -}}";
Aspire.Hosting.Tests (1)
Dcp\DcpExecutorTests.cs (1)
1477
Assert.Equal(expectedName, exe.Metadata.Annotations[CustomResource.
OtelServiceNameAnnotation
]);