Skip to content

Query logs and spans

Query workflow logs and spans from the CLI or SDKs for debugging, reports, and automated diagnostics.

Tilebox stores workflow logs and spans for each job. Query them when you need structured diagnostics outside the Console, such as in notebooks, scripts, or agent loops.

Use JSON output when another tool or agent will parse the result.

Terminal window
tilebox job logs <job-id> --json
tilebox job spans <job-id> --json

Limit or sort the output during debugging.

Terminal window
tilebox job logs <job-id> --limit 10 --sort desc

Use the jobs client in notebooks and scripts.

Python
from tilebox.workflows import Client
client = Client()
job = client.jobs().find("019e07b1-916b-0630-f3ba-f1c33235d174")
logs = client.jobs().query_logs(job)
spans = client.jobs().query_spans(job.id)
logs_df = logs.to_pandas()
spans_df = spans.to_pandas()