2 instantiations of OtlpExporterAnnotation
Aspire.Hosting (2)
OtlpConfigurationExtensions.cs (2)
30
resource.Annotations.Add(new
OtlpExporterAnnotation
());
49
resource.Annotations.Add(new
OtlpExporterAnnotation
{ RequiredProtocol = protocol });
6 references to OtlpExporterAnnotation
Aspire.Hosting (3)
Dcp\ContainerCreator.cs (1)
651
if (resource.TryGetAnnotationsOfType<
OtlpExporterAnnotation
>(out _))
OtlpConfigurationExtensions.cs (2)
67
if (!resource.TryGetLastAnnotation<
OtlpExporterAnnotation
>(out
var
otlpExporterAnnotation))
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
388
if (resource is IResourceWithEnvironment resourceWithEnv && resource.Annotations.OfType<
OtlpExporterAnnotation
>().Any())
Aspire.Hosting.Kubernetes (1)
KubernetesEnvironmentResource.cs (1)
547
if (resource is IResourceWithEnvironment resourceWithEnv && resource.Annotations.OfType<
OtlpExporterAnnotation
>().Any())
Aspire.Hosting.Tests (1)
ProjectResourceTests.cs (1)
238
Assert.Equal(expectedOtlpExporter, resource.Annotations.OfType<
OtlpExporterAnnotation
>().Any());