Settings Otel
Operation successful.
The OpenTelemetry configuration, matching the fields exposed in the UI. On a write this is a full replacement: every field must be provided. Fields managed declaratively via environment variables are returned with their effective value and ignored on write.
Whether OpenTelemetry tracing is enabled.
trueThe base URL of the OTLP collector to export traces to.
http://localhost:4318The path appended to the endpoint for the OTLP traces signal.
/v1/tracesThe service.name resource attribute reported on every span.
n8nAdditional headers sent to the OTLP collector, as a single string of comma-separated key=value pairs (e.g. authorization=Bearer my-token,x-tenant-id=acme). Whitespace around each key and value is trimmed; a value may contain spaces but not commas. Use an empty string when unused.
authorization=Bearer my-token,x-tenant-id=acmeThe ratio of traces to sample, between 0 (none) and 1 (all).
1How long, in milliseconds, to wait when checking the collector is reachable. Also used as the timeout for the test-trace endpoint.
2000Whether to emit a span for each node execution in addition to the workflow span.
trueWhether to inject trace context headers into outbound HTTP requests made by nodes.
trueWhen true, only production executions of published (active) workflows are traced, not manual/test runs.
trueUnauthorized
Forbidden
GET /api/v1/settings/otel HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"enabled": true,
"exporterEndpoint": "http://localhost:4318",
"exporterTracingPath": "/v1/traces",
"exporterServiceName": "n8n",
"exporterHeaders": "authorization=Bearer my-token,x-tenant-id=acme",
"tracesSampleRate": 1,
"startupConnectivityTimeoutMs": 2000,
"includeNodeSpans": true,
"injectOutbound": true,
"productionExecutionsOnly": true
}The OpenTelemetry configuration, matching the fields exposed in the UI. On a write this is a full replacement: every field must be provided. Fields managed declaratively via environment variables are returned with their effective value and ignored on write.
Whether OpenTelemetry tracing is enabled.
trueThe base URL of the OTLP collector to export traces to.
http://localhost:4318The path appended to the endpoint for the OTLP traces signal.
/v1/tracesThe service.name resource attribute reported on every span.
n8nAdditional headers sent to the OTLP collector, as a single string of comma-separated key=value pairs (e.g. authorization=Bearer my-token,x-tenant-id=acme). Whitespace around each key and value is trimmed; a value may contain spaces but not commas. Use an empty string when unused.
authorization=Bearer my-token,x-tenant-id=acmeThe ratio of traces to sample, between 0 (none) and 1 (all).
1How long, in milliseconds, to wait when checking the collector is reachable. Also used as the timeout for the test-trace endpoint.
2000Whether to emit a span for each node execution in addition to the workflow span.
trueWhether to inject trace context headers into outbound HTTP requests made by nodes.
trueWhen true, only production executions of published (active) workflows are traced, not manual/test runs.
trueOperation successful.
The OpenTelemetry configuration, matching the fields exposed in the UI. On a write this is a full replacement: every field must be provided. Fields managed declaratively via environment variables are returned with their effective value and ignored on write.
Whether OpenTelemetry tracing is enabled.
trueThe base URL of the OTLP collector to export traces to.
http://localhost:4318The path appended to the endpoint for the OTLP traces signal.
/v1/tracesThe service.name resource attribute reported on every span.
n8nAdditional headers sent to the OTLP collector, as a single string of comma-separated key=value pairs (e.g. authorization=Bearer my-token,x-tenant-id=acme). Whitespace around each key and value is trimmed; a value may contain spaces but not commas. Use an empty string when unused.
authorization=Bearer my-token,x-tenant-id=acmeThe ratio of traces to sample, between 0 (none) and 1 (all).
1How long, in milliseconds, to wait when checking the collector is reachable. Also used as the timeout for the test-trace endpoint.
2000Whether to emit a span for each node execution in addition to the workflow span.
trueWhether to inject trace context headers into outbound HTTP requests made by nodes.
trueWhen true, only production executions of published (active) workflows are traced, not manual/test runs.
trueThe request is invalid or provides malformed data.
Unauthorized
Forbidden
Conflict
PUT /api/v1/settings/otel HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 324
{
"enabled": true,
"exporterEndpoint": "http://localhost:4318",
"exporterTracingPath": "/v1/traces",
"exporterServiceName": "n8n",
"exporterHeaders": "authorization=Bearer my-token,x-tenant-id=acme",
"tracesSampleRate": 1,
"startupConnectivityTimeoutMs": 2000,
"includeNodeSpans": true,
"injectOutbound": true,
"productionExecutionsOnly": true
}{
"enabled": true,
"exporterEndpoint": "http://localhost:4318",
"exporterTracingPath": "/v1/traces",
"exporterServiceName": "n8n",
"exporterHeaders": "authorization=Bearer my-token,x-tenant-id=acme",
"tracesSampleRate": 1,
"startupConnectivityTimeoutMs": 2000,
"includeNodeSpans": true,
"injectOutbound": true,
"productionExecutionsOnly": true
}The connection details to test against an OTLP collector. Fields managed declaratively via environment variables are overridden with their effective value before the test is sent.
The base URL of the OTLP collector to export traces to.
http://localhost:4318The path appended to the endpoint for the OTLP traces signal.
/v1/tracesThe service.name resource attribute reported on the test span.
n8nAdditional headers sent to the OTLP collector, as a single string of comma-separated key=value pairs (e.g. authorization=Bearer my-token,x-tenant-id=acme). Whitespace around each key and value is trimmed; a value may contain spaces but not commas. Use an empty string when unused.
authorization=Bearer my-token,x-tenant-id=acmeHow long, in milliseconds, to wait for the collector to respond.
2000Operation successful.
The outcome of the test connection to the OTLP collector.
Whether the test span was accepted by the collector.
trueThe error reported by the collector or exporter. Present only when success is false.
Failed to connect: 401 UnauthorizedThe request is invalid or provides malformed data.
Unauthorized
Forbidden
POST /api/v1/settings/otel/test-trace HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 210
{
"exporterEndpoint": "http://localhost:4318",
"exporterTracingPath": "/v1/traces",
"exporterServiceName": "n8n",
"exporterHeaders": "authorization=Bearer my-token,x-tenant-id=acme",
"startupConnectivityTimeoutMs": 2000
}{
"success": true,
"error": "Failed to connect: 401 Unauthorized"
}Last updated
Was this helpful?