LaunchDarkly SDK OpenTelemetry integration
Actively maintained. Last release 6 weeks ago, commits in 9 of the last 26 weeks. A safe choice.
pip install launchdarkly-server-sdk-otelLaunchDarkly Server-side OTEL library for Python
LaunchDarkly overview
LaunchDarkly is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. Get started using LaunchDarkly today!
Supported Python versions
This version of the library has a minimum Python version of 3.10.
Getting started
Install the package
$ pip install launchdarkly-server-sdk-otel
The provided TracingHook can be setup as shown below:
from ldotel.tracing import Hook
import ldclient
ldclient.set_config(Config('sdk-key', hooks=[Hook()]))
client = ldclient.get()
set_tracer_provider(TracerProvider())
tracer = get_tracer_provider().get_tracer('pytest')
with tracer.start_as_curent_span('top-level span'):
client.variation('boolean', Context.create('org-key', 'org'), False)
Learn more
Read our documentation for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the reference guide for the python SDK.
Generated API documentation for all versions of the library is on readthedocs.
Contributing
We encourage pull requests and other contributions from the community. Check out our for instructions on how to contribute to this library.