Introduction
SDK Configuration
Configuring Options for OpenLIT SDK
Below is a detailed overview of the configuration options available, allowing you to adjust OpenLIT’s behavior and functionality to align with your specific observability needs:
Argument | Description | Default Value |
---|---|---|
environment | The deployment environment of the application. | "default" |
application_name | Identifies the name of your application. | "default" |
tracer | An instance of OpenTelemetry Tracer for tracing operations. | None |
meter | An OpenTelemetry Metrics instance for capturing metrics. | None |
otlp_endpoint | Specifies the OTLP endpoint for transmitting telemetry data. | None |
otlp_headers | Defines headers for the OTLP exporter, useful for backends requiring authentication. | None |
disable_batch | A flag to disable batch span processing, favoring immediate dispatch. | False |
trace_content | Enables tracing of content for deeper insights. | True |
disabled_instrumentors | List of instrumentors to disable. | None |
disable_metrics | If set, disables the collection of metrics. | False |
pricing_json | URL or file path of the pricing JSON file. | https://github.com/openlit/openlit/blob/main/assets/pricing.json |
collect_gpu_stats | Flag to enable or disable GPU metrics collection. | False |
Was this page helpful?