Skip to main content

OpenTelemetry Python Declarative Configuration (experimental)

Project description

pypi

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opentelemetry_configuration-0.65b0.tar.gz (62.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opentelemetry_configuration-0.65b0-py3-none-any.whl (49.4 kB view details)

Uploaded Python 3

File details

Details for the file opentelemetry_configuration-0.65b0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_configuration-0.65b0.tar.gz
Algorithm Hash digest
SHA256 edfa86cf8d754c8bef108316f52cb2b293efc6f2eaed1f6f72c2ec73054da1c7
MD5 ca8a0f6d20fd1e3c1ef7e9be0a04979a
BLAKE2b-256 4a6752702f2bf16a443257b5d733aaa64049541e6b3c0d3a3812ae52aa03b4a6

See more details on using hashes here.

File details

Details for the file opentelemetry_configuration-0.65b0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_configuration-0.65b0-py3-none-any.whl
Algorithm Hash digest
SHA256 25e5e56c4a5ea52160ee3239c406ac090244dc06b391d5063b89e9c0532bc491
MD5 dbb05e741210caac0f129a0ddecd0ab0
BLAKE2b-256 808d8abc78f04da6daec6ba89deeeca2a25f82cac300a0f01dd80594226fe4d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page