Tracing
Record the execution of your workflow tasks as open telemetry traces and spans
Overview
Applying Opentelemetry Traces to the concept of workflows means observing the execution of the workflow and the individual tasks within it. Visualizing the traces produced by a workflow in a tool such as Axiom might look like the following:
By tracing your workflows you can easily observe:
- the order in which tasks are executed
- which tasks are executed in parallel
- which task runner is executing each task
- the duration of each task
- the outcome of each task (success, failure)
This can be useful to identify bottlenecks and performance issues, and to ensure that your workflows are executing as expected.
Configure tracing
The Tilebox workflow SDKs contain built-in support for exporting open telemetry traces. To enable tracing, simply call the corresponding configuration functions during the start up of your task runner.
To configure tracing with Axiom, you first need to create a Axiom Dataset to export Tilebox workflow traces to. Additionally, an API key with ingest permissions to that dataset is required.
If you set environment variables AXIOM_API_KEY
and AXIOM_TRACES_DATASET
you can omit those arguments
to the configure_otel_tracing_axiom
function.
As soon as the runner picks up tasks and executes them, corresponding traces and spans are automatically generated and exported to the configured backend.
Was this page helpful?