OtlpConfigurationExtensions
Class static net10.0
Provides extension methods for configuring OpenTelemetry in projects using environment variables.
namespace Aspire.Hosting;
public static class OtlpConfigurationExtensions{ // ...}Methods4
Section titled MethodsAddOtlpEnvironment(IResource, IConfiguration, IHostEnvironment)static Configures OpenTelemetry in projects using environment variables.
AddOtlpEnvironment(IResource, IConfiguration, IHostEnvironment, OtlpProtocol)static Configures OpenTelemetry in projects using environment variables.
WithOtlpExporter(IResourceBuilder<T>)extension Injects the appropriate environment variables to allow the resource to enable sending telemetry to the dashboard.
WithOtlpExporter(IResourceBuilder<T>, OtlpProtocol)extension Injects the appropriate environment variables to allow the resource to enable sending telemetry to the dashboard.