n8n OpenTelemetry tracing is marked preview in n8n’s documentation. OTEL tracing is available from n8n
2.19.0, UI-based OTEL configuration is available from 2.27.0, and agent tracing is available from 2.33.0. Validate the behavior on your n8n version before relying on it for production operations.Prerequisites
- A self-hosted n8n instance with OpenTelemetry tracing support. Use n8n
2.19.0or later for workflow tracing and2.33.0or later for agent tracing. - An Arize AX account (sign up)
- Your Arize AX Space ID and API Key
Launch Arize AX
- Sign in to your Arize AX account.
- From Space Settings, copy your Space ID and API Key.
Configure n8n with environment variables
Set these variables on each n8n process that should emit traces, including main, worker, and webhook processors in queue mode:n8n appends
N8N_OTEL_EXPORTER_OTLP_TRACING_PATH to N8N_OTEL_EXPORTER_OTLP_ENDPOINT. Set the endpoint to the base Arize host and the tracing path to /v1/traces._FILE variants for sensitive values when your deployment platform mounts secrets as files.
Enable n8n agent tracing
In n8n2.33.0 or later, enable agent spans:
Verify in Arize
- Run an n8n workflow.
- Open your Arize AX space.
- Look for
workflow.executeandnode.executespans within ~30 seconds. Agent runs may also appear as GenAI spans if enabled.
Check from the skill, CLI, or SDK
Confirm spans are actually reaching your Arize AX project. Use whichever fits your workflow — the skill and CLI work for any framework; the SDK check is shown for each language.- Arize skill (agent)
- AX CLI
- SDK
Install the Arize Skills plugin and let your coding agent check for you:Then prompt your agent:
Use the arize-trace skill to export and analyze recent traces from my project. Confirm spans are arriving, and summarize any errors or latency issues.
What Arize captures
n8n exports:workflow.executespans for workflow executionsnode.executespans for node executions- W3C trace context propagation for inbound webhooks and outbound HTTP requests
- agent spans using OpenTelemetry GenAI semantic conventions when
N8N_AGENTS_TRACING_ENABLED=true
Optional: add a project name with an OpenTelemetry Collector
Arize AX uses theopeninference.project.name resource attribute to organize traces into projects. n8n’s direct OTLP configuration focuses on endpoint, headers, service name, sampling, and span options. If you want a specific project name, send n8n traces through an OpenTelemetry Collector and add:
space_id and api_key headers.
Troubleshooting
- No traces in Arize. Confirm
N8N_OTEL_ENABLED=true, the endpoint is the base Arize OTLP host, the tracing path is/v1/traces, and headers includespace_idandapi_key. - Only production executions appear. n8n exports production executions by default. Set
N8N_OTEL_TRACES_PRODUCTION_ONLY=falseto trace all executions. - Node spans are missing. Confirm
N8N_OTEL_TRACES_INCLUDE_NODE_SPANS=true. - Agent spans are missing. Confirm your n8n version supports agent tracing and
N8N_AGENTS_TRACING_ENABLED=true.