OpenStack taskflow instrumentation for OpenTelemetry
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_instrumentation_taskflow-0.6.0.tar.gz.
File metadata
- Download URL: opentelemetry_instrumentation_taskflow-0.6.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4effaa59c47b5c14ef707c7cba3de60b12ab34bc3585a2ca97b32a3f6a67ac25
|
|
| MD5 |
05804e0160cd0a549f93f6ae31ff087c
|
|
| BLAKE2b-256 |
cd21d040cd9221ad33e814176e1734c6c8dfb06f5bbc27224e0b9a337a9e7f68
|
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_taskflow-0.6.0.tar.gz:
Publisher:
publish-pypi.yml on daipham3213/opentelemetry-openstack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_instrumentation_taskflow-0.6.0.tar.gz -
Subject digest:
4effaa59c47b5c14ef707c7cba3de60b12ab34bc3585a2ca97b32a3f6a67ac25 - Sigstore transparency entry: 2031020988
- Sigstore integration time:
-
Permalink:
daipham3213/opentelemetry-openstack@19f3451b81e2aa65b91026a05c2579053ef2924f -
Branch / Tag:
refs/tags/0.6.0 - Owner: https://github.com/daipham3213
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@19f3451b81e2aa65b91026a05c2579053ef2924f -
Trigger Event:
release
-
Statement type:
File details
Details for the file opentelemetry_instrumentation_taskflow-0.6.0-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_instrumentation_taskflow-0.6.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e22b1e4fafd3d29dffb8866e9cdbed05f30afe0fce054badc2d8cc4b4c6b390
|
|
| MD5 |
ec1699a830bfd01a4c0eb680b80e6748
|
|
| BLAKE2b-256 |
313b11101fd1961b9d882d7d250c1cd93a45705e4cee43addae9a678b0b0d1d2
|
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_taskflow-0.6.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on daipham3213/opentelemetry-openstack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_instrumentation_taskflow-0.6.0-py3-none-any.whl -
Subject digest:
5e22b1e4fafd3d29dffb8866e9cdbed05f30afe0fce054badc2d8cc4b4c6b390 - Sigstore transparency entry: 2031021097
- Sigstore integration time:
-
Permalink:
daipham3213/opentelemetry-openstack@19f3451b81e2aa65b91026a05c2579053ef2924f -
Branch / Tag:
refs/tags/0.6.0 - Owner: https://github.com/daipham3213
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@19f3451b81e2aa65b91026a05c2579053ef2924f -
Trigger Event:
release
-
Statement type: