Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_taskflow-0.9.1.dev0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_taskflow-0.9.1.dev0.tar.gz
Algorithm Hash digest
SHA256 447c2368749cb8dcc005c1613718fbcebdb3a2f2b80a5cce23b3410a72fa5b74
MD5 e4b0ba95c311e40c0f5d054d824a004d
BLAKE2b-256 3a8e5e0636f09e1b9db1f437c911c402a2197efb74a841306f0d9686a23d03b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_taskflow-0.9.1.dev0.tar.gz:

Publisher: publish-pypi.yml on daipham3213/opentelemetry-openstack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentelemetry_instrumentation_taskflow-0.9.1.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_taskflow-0.9.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4810c6f270ea43e350f05ae53bb8db0b2029795fa145d7b74f61812fb1b27bd
MD5 f0b50943be417a399eb16e13bc75bbf8
BLAKE2b-256 f9b625317e90fa1174c946ae3ef0fd9dd2bfa1ce19612eef8281ce15fa0848c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_taskflow-0.9.1.dev0-py3-none-any.whl:

Publisher: publish-pypi.yml on daipham3213/opentelemetry-openstack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page