OpenTelemetry Python Declarative Configuration (experimental)
Project description
This package implements the OpenTelemetry declarative configuration specification for the Python SDK. It parses a YAML or JSON configuration file (or programmatically-constructed configuration model) into typed dataclasses and applies the result to the global SDK providers.
The standard activation path is the OTEL_CONFIG_FILE environment variable, which the SDK’s configurator picks up automatically. Set the variable and run your app under opentelemetry-instrument; no code change is required.
For programmatic use:
from opentelemetry.configuration import configure_sdk, load_config_file
config = load_config_file("otel-config.yaml")
configure_sdk(config)
Installation
pip install opentelemetry-configuration
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_configuration-0.65b0.tar.gz.
File metadata
- Download URL: opentelemetry_configuration-0.65b0.tar.gz
- Upload date:
- Size: 62.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edfa86cf8d754c8bef108316f52cb2b293efc6f2eaed1f6f72c2ec73054da1c7
|
|
| MD5 |
ca8a0f6d20fd1e3c1ef7e9be0a04979a
|
|
| BLAKE2b-256 |
4a6752702f2bf16a443257b5d733aaa64049541e6b3c0d3a3812ae52aa03b4a6
|
File details
Details for the file opentelemetry_configuration-0.65b0-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_configuration-0.65b0-py3-none-any.whl
- Upload date:
- Size: 49.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25e5e56c4a5ea52160ee3239c406ac090244dc06b391d5063b89e9c0532bc491
|
|
| MD5 |
dbb05e741210caac0f129a0ddecd0ab0
|
|
| BLAKE2b-256 |
808d8abc78f04da6daec6ba89deeeca2a25f82cac300a0f01dd80594226fe4d7
|