Skip to main content
n8n can export workflow and node execution traces over OTLP. Recent n8n versions can also emit agent spans using OpenTelemetry GenAI semantic conventions. Send these spans to Arize AX to inspect workflow latency, node failures, and agent behavior.
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.0 or later for workflow tracing and 2.33.0 or later for agent tracing.
  • An Arize AX account (sign up)
  • Your Arize AX Space ID and API Key

Launch Arize AX

  1. Sign in to your Arize AX account.
  2. 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:
For EU spaces, use:
Restart n8n after setting the environment variables.
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.
For production deployments, you can use n8n’s _FILE variants for sensitive values when your deployment platform mounts secrets as files.

Enable n8n agent tracing

In n8n 2.33.0 or later, enable agent spans:
By default, n8n agent tracing may record prompts, tool arguments, responses, and tool results. To reduce sensitive data capture:

Verify in Arize

  1. Run an n8n workflow.
  2. Open your Arize AX space.
  3. Look for workflow.execute and node.execute spans within ~30 seconds. Agent runs may also appear as GenAI spans if enabled.
If you configured OpenTelemetry from the n8n UI, use n8n’s Send test trace action to verify the exporter before running a workflow.

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.
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.execute spans for workflow executions
  • node.execute spans 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 the openinference.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:
Then export to Arize AX with the same 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 include space_id and api_key.
  • Only production executions appear. n8n exports production executions by default. Set N8N_OTEL_TRACES_PRODUCTION_ONLY=false to 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.

Resources

n8n OpenTelemetry tracing

n8n OpenTelemetry environment variables

OpenTelemetry GenAI and OpenInference