OtlpConfigurationExtensions Class

Definition

Provides extension methods for configuring OpenTelemetry in projects using environment variables.

public static class OtlpConfigurationExtensions
type OtlpConfigurationExtensions = class
Public Module OtlpConfigurationExtensions
Inheritance
OtlpConfigurationExtensions

Methods

Name Description
AddOtlpEnvironment(IResource, IConfiguration, IHostEnvironment, OtlpProtocol)

Configures OpenTelemetry in projects using environment variables.

AddOtlpEnvironment(IResource, IConfiguration, IHostEnvironment)

Configures OpenTelemetry in projects using environment variables.

WithOtlpExporter<T>(IResourceBuilder<T>, OtlpProtocol)

Injects the appropriate environment variables to allow the resource to enable sending telemetry to the dashboard.

WithOtlpExporter<T>(IResourceBuilder<T>)

Injects the appropriate environment variables to allow the resource to enable sending telemetry to the dashboard.

Applies to