Skip to main content

OpenTelemetry TaskFlow Instrumentation

OpenStack TaskFlow instrumentation for OpenTelemetry.

It records each engine execution as a root taskflow.flow.run span and each atom execute/revert call as a child span, so a whole flow shows up as a single trace:

taskflow.flow.run
  taskflow.task.execute
  taskflow.task.revert
  taskflow.retry.execute
  taskflow.retry.revert

Instead of patching atom methods, it uses TaskFlow's native notification API: it attaches an OpenTelemetry listener to every engine's flow and atom notifiers. This observes work wherever it runs (including the worker threads of the parallel engine) and keeps correct parent/child linkage regardless of which thread executes an atom.

Spans are annotated with flow/atom names and UUIDs. Atom arguments and results are never recorded.

Usage

from opentelemetry.instrumentation.taskflow import TaskflowInstrumentor

TaskflowInstrumentor().instrument()

Once instrumented, any engine you create — via taskflow.engines.run(), taskflow.engines.load(), a flow factory, or directly — is traced automatically.

Metadata

Release files for opentelemetry-instrumentation-taskflow 0.12.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opentelemetry-instrumentation-taskflow 0.12.4
File Size Uploaded Provenance Actions
opentelemetry_instrumentation_taskflow-0.12.4.tar.gz 6.0 kB With provenance Details for opentelemetry_instrumentation_taskflow-0.12.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-instrumentation-taskflow 0.12.4
File Interpreter ABI Platform Actions
opentelemetry_instrumentation_taskflow-0.12.4-py3-none-any.whl Python 3 none any Details for opentelemetry_instrumentation_taskflow-0.12.4-py3-none-any.whl

Total release size: 12.6 kB

Release files / opentelemetry_instrumentation_taskflow-0.12.4.tar.gz

Download URL opentelemetry_instrumentation_taskflow-0.12.4.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d3ba1b7f8c0d808507073e48ce1d1b0d3b128721da451e0166379aaa71d17537
BLAKE2b-256 checksum
How to use checksums
9065766eb02944edcc300957a7692ae1ffc3e1724aaf0cc5536ef0e7dfe36d80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

Release files / opentelemetry_instrumentation_taskflow-0.12.4-py3-none-any.whl

Download URL opentelemetry_instrumentation_taskflow-0.12.4-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4f8ec56a2dd44db13aecca5d2b8d5d59a2486c441eeeb9f4a2a678a9dae7ea7
BLAKE2b-256 checksum
How to use checksums
e8b65879b2a7d16115b6e8ef36b06c24ea0ffa35dbe282bf524166d1efe07b8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

Security for opentelemetry-instrumentation-taskflow 0.12.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for opentelemetry_instrumentation_taskflow-0.12.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page