2 instantiations of OtlpExporterAnnotation
Aspire.Hosting (2)
OtlpConfigurationExtensions.cs (2)
34
resource.Annotations.Add(new
OtlpExporterAnnotation
());
53
resource.Annotations.Add(new
OtlpExporterAnnotation
{ RequiredProtocol = protocol });
6 references to OtlpExporterAnnotation
Aspire.Hosting (5)
Dcp\DcpExecutor.cs (1)
1254
if (containers.Any(c => c.TryGetAnnotationsOfType<
OtlpExporterAnnotation
>(out _)))
Dcp\OtlpEndpointReferenceGatherer.cs (2)
24
if (!resource.IsContainer() || !resource.TryGetLastAnnotation<
OtlpExporterAnnotation
>(out
var
oea))
OtlpConfigurationExtensions.cs (2)
71
if (!resource.TryGetLastAnnotation<
OtlpExporterAnnotation
>(out
var
otlpExporterAnnotation))
Aspire.Hosting.Docker (1)
DockerComposeInfrastructure.cs (1)
114
if (resource is IResourceWithEnvironment resourceWithEnv && resource.Annotations.OfType<
OtlpExporterAnnotation
>().Any())