6 references to OtelServiceNameAnnotation
Aspire.Hosting (4)
Dcp\ContainerCreator.cs (2)
115
ctr.Annotate(CustomResource.
OtelServiceNameAnnotation
, container.Name);
196
containerExec.Annotate(CustomResource.
OtelServiceNameAnnotation
, containerExecutable.Name);
Dcp\ExecutableCreator.cs (1)
342
executable.Annotate(CustomResource.
OtelServiceNameAnnotation
, resource.Name);
OtlpConfigurationExtensions.cs (1)
136
context.EnvironmentVariables[KnownOtelConfigNames.ServiceName] = "{{- index .Annotations \"" + CustomResource.
OtelServiceNameAnnotation
+ "\" -}}";
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
128
Assert.Equal("svc", executable.Metadata.Annotations[CustomResource.
OtelServiceNameAnnotation
]);
Aspire.Hosting.Tests (1)
Dcp\DcpExecutorTests.cs (1)
1926
Assert.Equal(expectedName, exe.Metadata.Annotations[CustomResource.
OtelServiceNameAnnotation
]);