2 types derived from OtlpExporterAnnotation
Aspire.Hosting.JavaScript (1)
DenoOtlpExporterAnnotation.cs (1)
8internal sealed class DenoOtlpExporterAnnotation : OtlpExporterAnnotation, IReadOnlyDictionary<string, string>
Aspire.Hosting.TestUtilities (1)
Utils\OtlpExporterActivationTestExtensions.cs (1)
34: OtlpExporterAnnotation, IReadOnlyDictionary<string, string>
3 instantiations of OtlpExporterAnnotation
Aspire.Hosting (3)
OtlpConfigurationExtensions.cs (3)
30resource.Annotations.Add(new OtlpExporterAnnotation()); 49resource.Annotations.Add(new OtlpExporterAnnotation { RequiredProtocol = protocol }); 72builder.Resource.Annotations.Add(new OtlpExporterAnnotation { RequiredProtocol = protocol });
23 references to OtlpExporterAnnotation
Aspire.Hosting (4)
Dcp\ContainerCreator.cs (1)
339if (resource.TryGetAnnotationsOfType<OtlpExporterAnnotation>(out _))
OtlpConfigurationExtensions.cs (3)
99var otlpExporterAnnotation = GetEffectiveOtlpExporterAnnotation(resource); 200private static OtlpExporterAnnotation? GetEffectiveOtlpExporterAnnotation(IResource resource) 201=> resource.Annotations.OfType<OtlpExporterAnnotation>().LastOrDefault();
Aspire.Hosting.Azure.Tests (1)
AzureCosmosDBExtensionsTests.cs (1)
579Assert.NotEmpty(cosmos.Resource.Annotations.OfType<OtlpExporterAnnotation>());
Aspire.Hosting.Docker (3)
DockerComposeEnvironmentResource.cs (3)
387var otlpExporter = GetEffectiveOtlpExporterAnnotation(resource); 426private static OtlpExporterAnnotation? GetEffectiveOtlpExporterAnnotation(IResource resource) 427=> resource.Annotations.OfType<OtlpExporterAnnotation>().LastOrDefault();
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
1131var exporter = builder.Resource.Annotations.OfType<OtlpExporterAnnotation>().Last(); 1538if (!builder.Resource.Annotations.OfType<OtlpExporterAnnotation>().Any())
Aspire.Hosting.JavaScript.Tests (4)
AddDenoAppTests.cs (4)
46var exporter = Assert.Single(denoApp.Resource.Annotations.OfType<OtlpExporterAnnotation>()); 332var exporter = Assert.Single(app.Resource.Annotations.OfType<OtlpExporterAnnotation>());
Aspire.Hosting.Kubernetes (3)
KubernetesEnvironmentResource.cs (3)
551var otlpExporter = GetEffectiveOtlpExporterAnnotation(resource); 589private static OtlpExporterAnnotation? GetEffectiveOtlpExporterAnnotation(IResource resource) 590=> resource.Annotations.OfType<OtlpExporterAnnotation>().LastOrDefault();
Aspire.Hosting.Tests (3)
ProjectResourceTests.cs (1)
239Assert.Equal(expectedOtlpExporter, resource.Annotations.OfType<OtlpExporterAnnotation>().Any());
WithOtlpExporterTests.cs (2)
97var annotation = Assert.Single(container.Resource.Annotations.OfType<OtlpExporterAnnotation>());
Aspire.Hosting.TestUtilities (2)
Utils\OtlpExporterActivationTestExtensions.cs (2)
14if (!builder.Resource.TryGetLastAnnotation<OtlpExporterAnnotation>(out var exporter))