openfeature-hooks-opentelemetry
OpenTelemetry hooks for the OpenFeature Python SDK
Decision gist · record as of 2026-08-14
Yes. This package fills a clear observability gap for teams using OpenFeature and OpenTelemetry together. It has low install friction, active maintenance, permissive licensing, no known vulnerabilities, and solves a real problem—making feature flag decisions visible in distributed traces. Install it if you use both OpenFeature and OpenTelemetry and want to understand how feature flags affect your system's behavior.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; an active OpenTelemetry span must be present for the hook to create span events.
- Low friction install with three stable runtime dependencies (openfeature-sdk, opentelemetry-api, opentelemetry-semantic-conventions).
- Repository is active with recent commits and no archived status.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for most commercial and open-source projects.
last release 2026-02-17 (178 days) · last repo commit 2026-08-12 · 25 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 125,699 downloads/mo, #11,806 on PyPI
Alternatives
Verify before relying
pip install openfeature-hooks-opentelemetry
from openfeature import api
from openfeature.contrib.hook.opentelemetry import TracingHook
api.add_hooks([TracingHook()])- Whether the hook works with all OpenFeature SDK versions or has specific version constraints beyond what the dependency declaration shows.
- Performance overhead of the hook when evaluating many flags in high-throughput scenarios.
- Compatibility with different OpenTelemetry exporters and backends.
What it is and what it does
This package provides a hook for the OpenFeature Python SDK that integrates with OpenTelemetry to automatically record feature flag evaluations as span events. When a flag is evaluated and an active OpenTelemetry span exists, the hook captures the evaluation as a span event, making feature flag decisions visible in distributed traces. This enables teams to correlate feature flag changes with request performance, latency, and errors, supporting observability use cases like A/B testing analysis and progressive rollout monitoring.
The hook can be registered either globally (affecting all flag evaluations) or per-client (affecting only specific OpenFeature clients). It depends on openfeature-sdk for the hook framework, opentelemetry-api for span access, and opentelemetry-semantic-conventions for standardized attribute naming. The package is actively maintained and requires Python 3.9 or later.
Use it for
- Correlate feature flag decisions with request latency and errors in distributed traces to measure feature impact.
- Track A/B test variant assignments across service calls to analyze test performance and user behavior.
- Monitor progressive feature rollouts by observing which flag variants are active during request processing.
- Debug unexpected behavior by inspecting which feature flags were evaluated during a traced request.
- Analyze the relationship between feature flag changes and system performance metrics in observability dashboards.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This package fills a clear observability gap for teams using OpenFeature and OpenTelemetry together. It has low install friction, active maintenance, permissive licensing, no known vulnerabilities, and solves a real problem—making feature flag decisions visible in distributed traces. Install it if you use both OpenFeature and OpenTelemetry and want to understand how feature flags affect your system's behavior.
Install
openfeature-hooks-opentelemetry on PyPI
Before you install
Low friction install with three stable runtime dependencies (openfeature-sdk, opentelemetry-api, opentelemetry-semantic-conventions). Repository is active with recent commits and no archived status.
Requires Python 3.9 or later; an active OpenTelemetry span must be present for the hook to create span events.
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for most commercial and open-source projects.
Quickstart
pip install openfeature-hooks-opentelemetry
from openfeature import api
from openfeature.contrib.hook.opentelemetry import TracingHook
api.add_hooks([TracingHook()])
Verify before relying
- Whether the hook works with all OpenFeature SDK versions or has specific version constraints beyond what the dependency declaration shows.
- Performance overhead of the hook when evaluating many flags in high-throughput scenarios.
- Compatibility with different OpenTelemetry exporters and backends.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesopenfeature-sdkopentelemetry-apiopentelemetry-semantic-conventions |
| Maintenance | Actively maintained 178 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 125,699 / month, #11,806 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: PythonProgramming Language :: Python :: 3 |
Evidence: openfeature_hooks_opentelemetry-0.3.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opentelemetry feature flag tracing”
- openfeature-hooks-opentelemetryAutomatically captures feature flag evaluations as span events in…
- opentelemetry-python-contrib-external-valkeyAdds OpenTelemetry tracing to the Valkey Python client, capturing…
- pytest-opentelemetryA pytest plugin that instruments test runs with OpenTelemetry,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also opentelemetry-instrumentation-replicate · opentelemetry-instrumentation-transformers · opentelemetry-instrumentation-django · opentelemetry-instrumentation-groq · opentelemetry-instrumentation-logging · opentelemetry-instrumentation-openai · openfeature-flagd-core · openfeature-sdk · posthog · flagsmith-flag-engine