$npx skillfedfor your agent

openfeature-hooks-opentelemetry

OpenTelemetry hooks for the OpenFeature Python SDK

Worth itPyPI MonitoringReleased Feb 2026125.7K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — openfeature_hooks_opentelemetry-0.3.1-py3-none-any.whl
v0.3.1 · released 2026-02-17 · Python >=3.9 · 3 runtime deps: openfeature-sdk, opentelemetry-api, opentelemetry-semantic-conventions

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
openfeature-sdkopentelemetry-apiopentelemetry-semantic-conventions
MaintenanceActively maintained 178 days since the last release
Last repo commit
First released
Downloads125,699 / month, #11,806 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
opentelemetry feature flag tracingopenfeature hooks observabilityfeature flag span eventsopentelemetry tracing integrationfeature flag telemetry signalsopenfeature sdk hooksdistributed tracing feature flags
Topics
observabilityfeature-flagsdistributed-tracing

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

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