Tracing n8n workflow executions with OpenTelemetry

Export n8n workflow and node spans to an OpenTelemetry Collector you run, with trace context from callers and planned limits for the Preview feature.

On this page

Tracing n8n executions with OpenTelemetry: what it answers and when you need it

n8n's OpenTelemetry export sends workflow and node spans from your n8n instance to an OpenTelemetry Collector, and the feature is in Preview. Use it when a workflow fails or runs slowly across several systems and no one can see the whole path. A webhook might call an API, write to a database, start a second workflow and post to chat. The execution list in n8n shows the outcome of that one run, but it does not show where the time went across the systems around it. A trace gives one timeline per execution, with a span for the workflow and a span for each node inside it, so the operator can see which step held the run.

OpenTelemetry is a framework and toolkit for generating, exporting and collecting telemetry such as traces, metrics and logs. It is not an observability backend, so you still need a separate tool to store and visualize traces. Choose that tool before you enable the export, because spans that reach a Collector with nowhere to go do little for the on-call engineer. Decide where the Collector runs as well: beside n8n as an agent, or as a gateway that accepts data from several sources. The What is OpenTelemetry overview is the natural starting point for the vocabulary your team will need.

Treat the Preview status as a planning constraint. Pin your n8n version, and retest the export after each upgrade, because Preview behavior can change between releases. Confirm with n8n which plans or editions include the feature, and confirm the exact settings it requires and the span attributes it sends in your release. Check the Collector side too: its components have mixed stability levels, documented in each component's README, and the OpenTelemetry status page is where to verify them before you choose components for production.

How n8n spans reach your Collector and backend

The trace starts at a caller that sends a request carrying W3C trace context to n8n. n8n then exports workflow and node spans to an OpenTelemetry Collector, which can run as an agent beside n8n or as a gateway shared by many sources. The Collector forwards telemetry to a backend you choose, and that hand-off is where your trust boundary sits. Check that the caller's trace headers arrive intact, that the Collector and backend sit inside your controlled environment, and that every export path is authenticated.

Trace context flows from the caller through n8n and the Collector to your chosen backend.

Choosing Collector placement: agent or gateway

Running the Collector as an agent places a Collector instance on the same host, virtual machine or pod as the n8n process it serves, so n8n sends telemetry only to a nearby neighbor. The Collector documentation describes this pattern as running next to services. Each host batches, retries and forwards its own data, which keeps the hop short. For a single n8n instance on a server you control, the agent model is often the simplest starting point because there is one host to configure.

  • Short local hop: Spans leave n8n for a process on the same machine, so a slow path to the tracing backend is absorbed by the agent before it reaches the workflow.
  • Per-host configuration: Receivers, processors and exporters live on every host, so each change must be rolled out and verified everywhere.
  • Shared resource budget: The agent uses CPU and memory on the n8n host, so size that machine for execution peaks plus the Collector.
  • Limited blast radius: A failed agent affects only its own host, but operators must monitor every agent individually.

Before you commit, check that the agent's receiver is reachable from every n8n process and that its resource limits leave headroom during busy periods.

Configuration options and when each fits

This table compares the settings that control what n8n sends to OpenTelemetry and how the Collector receives, processes, exports and authenticates that data. Read each row against the choice you face, then check exact setting names and feature status in the release notes for your n8n version, since tracing is a Preview feature that can change between releases. The main takeaway is to start with workflow-level spans and an agent Collector, and add node detail, gateway routing and authentication only when a team needs them.

OptionWhen it fitsWhat to confirm
n8n OpenTelemetry export settingsTurning on trace export for a test or staging instance before productionSetting names, default state and Preview status in the release notes for your n8n version
Workflow-level spans onlyRun totals, durations and failure rates per workflow, with the least data leaving n8nWhich span types and attributes your version emits by default
Node-level span detailFinding which step is slow or failing, when you accept more span volume and more data in tracesWhether node inputs and outputs appear in spans, and how your version limits their size
Collector as agentOne Collector beside each n8n host or container, with a short local hop from n8nThe exporter endpoint and protocol your n8n version supports, and the Collector release you pin
Collector as gatewayMain, worker and webhook processors all send to one central pipeline for routing and samplingMemory and batch sizing for the gateway, using the Collector configuration documentation for your release
Processors (batch, memory limiter, attribute filtering)Batching to reduce export overhead, and removing sensitive attributes before spans leave your networkProcessor names and stability levels in each component's README for your Collector version
Receiver authentication (authenticator extension, such as OIDC)The Collector accepts traces from several network segments or teamsWhether the receiver supports the authenticator and whether n8n can send the credential it expects
Outgoing authentication (oauth2client extension)The exporter path to your trace backend requires a token that the Collector must obtainThat the Collector, not n8n, adds the credential, and the token lifecycle your backend requires

Setting up the tracing pipeline step by step

This sequence takes an n8n instance from untraced to sending workflow and node spans through a Collector into a backend, with the caller's trace context carried into the run. Each step closes with a check, so the team knows whether to continue.

  1. Confirm the n8n version and feature status

    The platform owner checks the n8n release notes for the version in use and confirms in the n8n documentation that OpenTelemetry export is included in that build. Record the version number and whether the feature is still marked Preview in the change ticket. The most recent release in the supplied facts is n8n 2.43, released 6 October 2026, but your build may differ. If the feature is missing, plan an upgrade through the normal change process before continuing.

  2. Download a Collector release from the official page

    A platform engineer downloads the OpenTelemetry Collector from the official releases page and selects the distribution that includes the receivers and exporters you need. The supplied facts list v0.163.0 as released on October 16, 2026, but choose the version your backend supports and record it. Check that the version reported by the binary matches the release tag you downloaded before moving on.

  3. Verify checksums, signatures and the SBOM

    Before the binary goes near production, the engineer compares its SHA256 value with the checksum file published with the same release. Confirm the artifact signature using the verification method described in the release assets, then review the SBOM and load it into your software inventory or vulnerability tooling. The step is complete when every hash matches, the signature verifies and the SBOM is stored with the change record. Do not deploy an artifact that fails any of these checks.

  4. Configure a receiver and trace pipeline

    The engineer writes a Collector configuration with an OTLP receiver, a batch processor, a memory limiter, an exporter to the chosen backend and a traces pipeline that connects them. Bind the receiver to an internal address, not a public interface, and add an authenticator extension if the network path requires it. Check the configuration in the Collector configuration documentation for your version, then run the validation command and confirm the Collector starts without errors.

  5. Point n8n at the collector endpoint

    The platform owner sets the OpenTelemetry export options in n8n using the names given in the n8n documentation for the confirmed version, with the endpoint pointing at the Collector receiver. Apply the same setting to the main instance, worker processes and webhook processors, because each one can emit spans in queue mode. Restart each process using your deployment method. The check is that n8n startup logs show the exporter initialized and the Collector logs show the connection.

  6. Send a test execution with a known trace context

    The tester triggers a workflow through a webhook from a caller that sends a W3C traceparent header with a known trace ID, then runs a second workflow manually. Using a known ID makes it easy to find the run in the backend. Keep the test workflow simple and free of sensitive data. The step is complete when both executions reach the Collector and the Collector logs show accepted trace data.

  7. Verify spans and attributes in the backend

    The engineer opens the test traces in the backend and confirms that the webhook run continues the caller's trace ID, that a root span represents the workflow and that child spans appear for each node. Compare the attribute names with those listed in the n8n documentation for your version, and confirm that no credentials, tokens or personal data appear in attribute values. For a long-running workflow, check whether start spans appear before the run completes, since that depends on the build and the Preview status.

How W3C trace context from callers joins n8n spans to upstream traces

An n8n span joins an upstream trace only when the incoming request carries a W3C traceparent header and n8n's tracing setup accepts it. That header holds a version, a trace ID, the caller's span ID and trace flags. If the caller sends it, the workflow's spans can share the caller's trace ID and appear under the caller's span in your tracing backend. If the caller does not send it, n8n's spans start a new, unrelated trace. The workflow still records its telemetry, but an API gateway, service, or scheduler that started the request cannot be linked to the execution, and a slow webhook cannot be traced end to end. Confirm the exact header handling for your n8n version in the n8n documentation before you design around it.

Long runs need a decision before you build. A single span that stays open for the length of a multi-hour execution is hard to export reliably and gives little detail while the run is in progress. Starting child spans for major stages, or for each node, keeps progress visible. You then choose between two trace models. One trace per execution keeps every node of one run in a single view, which is simple to read but can grow large when a workflow calls other workflows. Linked traces across a workflow chain keep each execution's trace small and record the relationship with span links, which suits chains of sub-workflows, but the caller or the calling workflow must pass the trace identifiers forward, and your dashboards must follow those links. Check how your backend displays linked spans before you pick this model.

Test propagation with your own callers before you rely on it. Send a request with a known traceparent value, then confirm in the collector's debug output or your backend that the n8n spans carry the same trace ID and the expected parent. Repeat the test without the header to see the new-trace behavior, and test webhook and scheduled triggers separately. If you run queue mode, check that the trace context still reaches the node that actually executes the work on a worker, since the request passes through the main instance and Redis first. Record the n8n version, the collector version, and the results, because this area is labeled as a Preview feature and its behavior can change between releases. The OpenTelemetry Collector documentation explains the receiver and exporter settings to check during these tests.

Security considerations for trace data and the Collector

Trace data from n8n is easy to over-collect and easy to leave exposed. The cards below cover what spans record, how the Collector authenticates traffic, how it is configured and hosted, who can read traces and how long they are kept. Review them together before the first trace leaves your n8n network.

Review what span attributes record

Span attributes are attached to every workflow and node span, and they can carry values from the run. Before enabling export, list which attributes your n8n version emits and which workflow fields, parameters or identifiers could end up in them. Treat any attribute that can hold customer data, tokens or request payloads as sensitive, and confirm with your vendor documentation whether those values are included by default. Test with a sample workflow that uses dummy personal data and inspect what arrives at the backend.

Authenticate Collector receivers and exporters

A Collector that accepts spans without authentication lets any reachable host inject or read telemetry. Use authenticator extensions on the receiver to verify callers, for example with OIDC, and use an extension such as oauth2client to add credentials to requests the Collector sends to the backend. Keep client secrets and tokens out of plain configuration files and confirm how each component handles them in its README, since support and stability differ by component.

Collector configuration docs

Follow Collector configuration best practices

The Collector's configuration best practices describe hardening choices for receivers, exporters and extensions, such as binding listeners deliberately, enabling TLS and limiting what each pipeline accepts. Apply them as a checklist during review, and record which practice each setting satisfies. Re-check the list when you upgrade the Collector, because defaults and recommendations can change between releases.

Best practices guide

Keep the Collector off the public internet

Run the Collector on a private network segment and expose only the n8n instances that must send spans to it. Place it behind internal load balancing or a gateway deployment if many sources report to it, and block inbound access from outside your perimeter. Confirm that the Collector's exporter endpoint resolves only to your trace backend and that outbound rules permit nothing else.

Restrict access to the trace backend

Traces often show workflow names, execution timing and failure details that are sensitive in their own right. Limit who can query the trace backend by role, separate operator access from developer access where your structure allows it, and log queries if your backend supports that. Ask the backend vendor or project to document its authentication options, and confirm that administrative interfaces are not reachable from general user networks.

Retain traces under your data policy

Set retention on the trace backend to match your data classification and legal obligations, rather than accepting the backend default. Shorter retention reduces what an incident or disclosure can expose, while longer retention supports investigations. Document the retention period, who approves changes, and how deletion is verified, and confirm that backups of the trace store follow the same schedule.

Questions teams ask before tracing n8n in production

What drives the effort of tracing n8n workflow executions with OpenTelemetry?

The effort depends less on n8n itself and more on how many systems the traces must cross and where they must land. The main drivers are the number of n8n processes (in queue mode, main, worker and webhook processes each need configuration), the number of workflows whose executions must be followed end to end, and whether callers already send W3C trace context that n8n should continue. Each adds configuration and testing. Next come the Collector choices: running it as an agent beside n8n, as a gateway for several sources, or both, plus the processors, exporters and authentication your backend requires. The trace backend is a separate tool, because OpenTelemetry does not store or visualize traces. In regulated environments, the review of which span attributes leave your network often takes the most time. Ask any provider for a quote that lists each instance, Collector role, backend and review step separately.

Can our internal team set up n8n tracing without outside help?

Yes, many platform teams can, provided they already run an observability stack and understand how n8n is deployed. The work falls into three areas: n8n's own settings, an OpenTelemetry Collector pipeline, and a backend to store and view traces. Teams new to OpenTelemetry should plan time to learn its concepts, such as spans, resources and exporters, and should check the stability level of each Collector component in its README, because core components have mixed stability. Internal teams usually know the network and identity rules best. An outside partner is most useful when staff time is limited, when data review is strict, or when you want the configuration documented and tested before production. DeployOpen plans, implements, documents and supports self-hosted platforms inside your infrastructure, under a fixed scope agreed in writing. Ask any provider which parts they will hand over to your team.

What does tracing need from our team, such as Collector hosting and network paths?

Tracing needs decisions and access from several teams, not only from the people who run n8n. Plan for these parts before the build starts:

How long does an n8n tracing rollout take?

No duration applies to every environment, so the timeline should follow the written scope rather than a general figure. The drivers are the number of n8n instances, the Collector topology, the backend your team already runs or must add, the number of environments that need tracing before production, and how long reviews of data, network and identity changes take in your organization. Each change request also adds time if it crosses a team boundary. Ask for milestones that separate a development test, a staging run, and a production rollout with a rollback plan, and confirm each milestone with the owner of the backend and the network. Fixed-scope engagements have their timelines agreed in writing before work starts, so ask for that schedule alongside the quote.

Is OpenTelemetry tracing for n8n production-ready while it is marked Preview?

Treat it as limited until you confirm its current status and behavior in n8n's documentation for the version you run. Preview features can change in coverage, naming or behavior between releases, and n8n ships minor releases roughly weekly, so pin versions and retest after every upgrade. Before production, verify which workflow and node spans are emitted, how start spans behave for long-running executions, whether incoming W3C trace context is honored, and what happens to executions when the Collector is unavailable. Run a pilot on a non-production instance, record the gaps, and decide in advance whether a gap blocks rollout. The OpenTelemetry status page also explains that trace APIs and SDKs are stable in most languages, but that core Collector component stability varies, so check the components in your pipeline individually.

Do we need to review the OpenTelemetry Collector license and release verification?

Yes, a short review is worth doing, even though the Collector repository is licensed under Apache-2.0. Confirm the license terms with your legal or procurement team for the distribution you choose. Releases ship the contrib distribution with signed artifacts, SHA256 checksums and SBOM files, so verify the signature and checksum of the exact version you deploy, and store the SBOM for your vulnerability process. The contrib distribution includes many components with mixed stability, so consider building a distribution that contains only the receivers, processors and exporters you use. The latest release listed in the supplied sources is v0.163.0, released on October 16, 2026, so confirm which version your change board has approved. n8n's own license is separate and should be reviewed on its own terms.

Could n8n tracing expose sensitive workflow data to our observability tools?

It could, and the answer depends on which attributes the spans carry and where they are exported. Confirm the attributes n8n emits for workflow and node spans in its documentation, then classify each one before the trace backend receives it. Controls to review include filtering or redacting attributes in the Collector pipeline, restricting who can query traces, setting retention periods that match your data policy, and keeping the Collector and backend inside the network zones that already hold similar data. Authenticator extensions can check incoming connections with OIDC and add OAuth2 credentials to exporter requests, which supports access control on the export path. The Collector configuration best practices document is a useful checklist for these settings.

Operating tracing after go-live: versions, upgrades and retention

Tracing stops being useful the moment it quietly breaks, so the ongoing work is about keeping three moving parts aligned: the OpenTelemetry Collector, the n8n release you run, and the retention and sampling settings on your backend. Track Collector releases on the OpenTelemetry Collector releases page. The supplied release dates are v0.161.0 on September 16, 2026, v0.162.0 on September 29, 2026 and v0.163.0 on October 16, 2026. Read each release note for changes to the receivers, exporters and processors your pipeline uses, and pin the version you deploy rather than tracking latest. Collector releases ship signed artifacts, SHA256 checksums and SBOM files, so verify those as part of each upgrade in the same way you would verify any binary entering your environment.

n8n ships minor releases roughly weekly, and span names, attributes and parent-child relationships are the part most likely to shift in ways that break dashboards and alerts. After each n8n minor upgrade, re-run a known workflow with a known caller traceparent and confirm the trace ID carries through, the workflow and node spans still appear, and the attribute names your queries depend on are unchanged. Because tracing is a Preview feature, treat any difference as a finding to record, not an assumption to accept. Check sampling and retention in the same pass: confirm the sampling ratio still matches your cost and storage plan, that long runs still produce complete traces, and that retention on your backend covers the incident review window your security and operations teams need. Watch for dropped spans through Collector self-telemetry and queue or refused-span counters, and set an alert when they rise after an upgrade.

Use this checklist after every Collector or n8n upgrade: confirm the pinned Collector version and checksum; confirm the OTLP exporter endpoint and authentication still work; send a test trace with a caller-supplied W3C trace context and confirm it is linked; confirm workflow and node span attributes match your saved queries; confirm start spans for long runs still appear before completion; compare span volume and sampling ratio with the previous week; check dropped-span and refused-span counters; confirm retention settings on the trace backend; and record the results with the versions tested. Confirm with your vendor or internal platform owner which Collector components in your pipeline are stable, since the OpenTelemetry status page notes that stability varies by component and is documented in each component's README.

How DeployOpen scopes and delivers n8n tracing

DeployOpen approaches tracing n8n workflow executions as a written, fixed-scope piece of work inside your own infrastructure. We agree which workflows, execution paths and collector pipelines are in scope, then build, test, document and hand over the tracing setup so your operations team can run it.

How we scope

  • Inventory which n8n instances, workers and webhook processors should emit traces and which workflows matter most
  • Confirm the OpenTelemetry Collector deployment model, whether agent or gateway, and where traces will be stored
  • Record in writing whether callers send W3C trace context and which long-running workflows need start spans

How we build

  • Configure n8n trace export to your collector and set the span attributes your operators need to filter executions
  • Wire Collector receivers, processors and exporters, and add authentication to receivers and outgoing exporter requests where your policy requires it
  • Test trace propagation from a sample caller and check that failed executions appear with the attributes your team will query

How we hand over

  • Document the environment variables, Collector configuration and version pins used, with the reasoning for each setting
  • Walk your operators through finding a single execution across the trace backend and reading its node spans
  • Record the known limits of the Preview tracing feature so your team can decide what to monitor by other means

How we support

  • Ongoing support, Collector and n8n upgrades, and continuous testing are available as a retainer
  • Plan the review of Collector and n8n release notes before each upgrade, since Preview behavior can change between releases
  • Retest trace propagation and attributes after each upgrade so tracing gaps are caught before operators rely on them

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.