OpenTelemetryConfig
Configuration class for OpenTelemetry integration.
Provides seamless integration with the OpenTelemetry SDK, allowing initialization and customization of various components such as the tracer, meter, exporters, etc.
Properties
Functions
Adds a SpanExporter to the OpenTelemetry configuration. This exporter will be used to export spans collected during the application's execution.
Adds a SpanProcessor creator function to the OpenTelemetry configuration.
Sets the sampler to be used by the OpenTelemetry configuration. The sampler determines which spans are sampled and exported during application execution.
Sets the service information for the OpenTelemetry configuration. This information is used to identify the service in telemetry data.
Controls whether verbose telemetry data should be captured during application execution. When set to true
, the application collects more detailed telemetry data. This option can be useful for debugging and fine-grained monitoring but may impact performance.