Tracing
Record the execution of your workflow tasks as OpenTelemetry traces and spans
Overview
Applying OpenTelemetry traces to the concept of workflows allows you to monitor the execution of your jobs and their individual tasks. Visualizing the trace for a job in a tool like Axiom may look like this:
Tracing your workflows enables you to easily observe:
- The order of task execution
- Which tasks run in parallel
- The task runner handling each task
- The duration of each task
- The outcome of each task (success or failure)
This information helps identify bottlenecks and performance issues, ensuring that your workflows execute correctly.
Configure tracing
The Tilebox workflow SDKs have built-in support for exporting OpenTelemetry traces. To enable tracing, call the appropriate configuration functions during the startup of your task runner.
To configure tracing with Axiom, you first need to create a Axiom Dataset to export your workflow traces to. You will also need an Axiom API key with the necessary write permissions for your Axiom dataset.
Set the environment variables AXIOM_API_KEY
and AXIOM_TRACES_DATASET
to omit those arguments
in the configure_otel_tracing_axiom
function.
Once 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?