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