Microsoft and LangChain shipped agent tracing within 72 hours of each other. The standard is real — but it stops at the orchestrator boundary, and most production pipelines break exactly there.
Last Updated: November 23, 2026
In one week Microsoft put cross-agent debugging into public preview in Azure Monitor on OpenTelemetry GenAI semantic conventions, and LangChain shipped LangSmith Tool Gateway into public beta with a trace for every tool call. Both are real. Neither gives you an end-to-end trace on its own, because the GenAI conventions are still marked Development, LangSmith's tool-call nesting rides its own header rather than W3C traceparent, and n8n — which does now emit OpenTelemetry spans — emits no gen_ai.* attributes at all from the legacy AI Agent node most production workflows are built on. Your waterfall ends where your orchestrator starts.
What actually shipped in the week of November 17
Two announcements, 48 hours apart, both aimed at the same operational question: which agent, which tool call, which handoff caused this.
On November 17, Microsoft published its Ignite 2026 observability round-up. Cross-agent debugging entered public preview, external-agent observability and evaluation in Foundry and Azure Monitor went generally available, Azure Monitor traces and Trace Analytics entered public preview, and Health Models went GA. The framing is worth reading closely, because Microsoft states the constraint plainly rather than hiding it: for managed agents you cannot instrument the platform's internal code yourself, so runtime providers must expose compatible telemetry and that telemetry needs to connect across platforms. The Microsoft runtimes — Copilot Studio, Foundry, GitHub Copilot, Azure Copilot, WorkIQ, M365 Copilot and CoWork — are standardising on agent observability data built on OpenTelemetry and its GenAI semantic conventions. For agents outside Foundry, you instrument them yourself, send compatible traces to Application Insights, and register them with Foundry — registration is explicitly not instrumentation.
On November 19, LangChain shipped LangSmith Tool Gateway in public beta: a managed tool layer that handles credentials, identity and access for every agent tool call. The observability half is the under-reported part. Each Tool Gateway trace records the tool, the server, the kit, whose credential the call acted as, the outcome, the policies that blocked it, and the time spent in the gateway versus waiting on the MCP server.
That is a genuinely new primitive. "Which credential did this 3 a.m. agent use" has never been a one-query answer before. But stack the two announcements side by side and the convergence is conceptual, not literal.
gen_ai.* spans — for the new Agents feature only, not the legacy AI Agent node
Source: n8n docs, 2026
The standard is real, but it is still marked "Development"
The GenAI semantic conventions moved out of the main OpenTelemetry semconv repository into a dedicated GenAI conventions repository, and in that repository the agent and framework spans document carries a status of Development, with every gen_ai.* attribute in the create-agent span table badged Development rather than Stable. Only the borrowed general-purpose attributes — error.type, server.address, server.port — are stable.
That matters operationally in a way people gloss over. Development status means attribute names and span shapes can change between semconv releases without a deprecation cycle. If you build alerting, SLIs or chargeback on top of gen_ai.operation.name today, you are building on a contract that is allowed to move. The convention is still worth adopting — it is the only cross-vendor option — but pin the semconv version in your collector config and treat a version bump as a schema migration, not a patch.
The second thing to read carefully is the distinction the spec draws between an in-process agent or framework entrypoint invocation and an invocation targeting an out-of-process or remote agent service. Those are different spans. Most multi-agent systems in the wild are a mix of both, and instrumentation libraries do not always pick correctly, which produces traces where an agent-to-agent handoff looks like a local function call or vice versa.
And then the part that undercuts the "one standard" narrative: LangSmith's Tool Gateway nesting does not use W3C trace context. To nest a tool call under the agent run that made it you send the standard LangSmith distributed tracing headers — langsmith-trace to identify the parent run, and baggage to carry the parent's project, metadata and tags — set on each tool call rather than once at client creation. The filterable keys are vendor-namespaced too: ls_tool_gateway_tool, ls_tool_gateway_server_id, ls_tool_gateway_outcome, ls_tool_gateway_blocked. I did not find W3C traceparent documented for that specific path, so treat correlation between a LangSmith tool-call trace and an Azure Monitor agent trace as something you build, not something you inherit.
| Layer | What it emits | Correlation key | Gap you inherit |
|---|---|---|---|
| Azure Monitor / Foundry agents | OTel spans using GenAI semantic conventions, stitched across runtimes | W3C trace context | Preview requires onboarding and has regional restrictions |
| LangSmith Tool Gateway | Per-tool-call trace: tool, server, kit, acting-as identity, outcome, timing | langsmith-trace + baggage | Vendor header; no arguments or results recorded |
| n8n workflow / node spans | workflow.execute and node.execute with n8n.* attributes | W3C traceparent, inbound and outbound | No model, token or cost attributes anywhere |
| n8n new Agents feature | <agent>.generate root span plus nested execute_tool spans with gen_ai.* | W3C traceparent | Off by default; records prompts and tool results unless disabled |
| n8n legacy AI Agent (LangChain) node | A plain node.execute span and nothing else | W3C traceparent | No agent-run or tool-call spans at all |
Where the trace actually breaks
Here is the correction to the lazy version of this story: n8n is not a telemetry black hole any more. It exports a workflow.execute span per execution and a nested node.execute span per node, reads a W3C traceparent header from inbound webhook requests and uses it as the parent of the workflow span, and can inject traceparent, tracestate and baggage on outbound requests from HTTP Request nodes and anything else using the n8n HTTP helpers. Sub-workflow spans parent correctly to the calling workflow.
The breaks are narrower and more specific than "n8n emits nothing", and that is what makes them dangerous — the waterfall looks complete.
Break one: the wait gate. When a workflow resumes after a wait, the new span links back to the previous span using a span link rather than a parent-child relationship. Span links are correct modelling — a resumed execution is not a child of the paused one — but most trace UIs render a link as a sidebar reference, not a connected waterfall. Every human approval gate in your pipeline splits your "end-to-end" trace into two traces that a human has to join by eye.
Break two: the crash. A crashed span ends when n8n detected the crash, not when the instance died — one to two minutes for a stalled queue worker, the next periodic check for queue recovery, the next restart for startup recovery. Put that in a p99 latency chart and you have invented a multi-minute tail that never happened. The docs are explicit: exclude n8n.execution.status=crashed from latency metrics and count them only in error rate. Also note the status change — before 2.42.0 a job whose worker died ended as error; from 2.42.0 it ends as crashed, so alerts matching only error silently stop firing.
Break three: the model call. This is the big one. The older AI Agent (LangChain) node only produces the standard node.execute span like any other node and does not emit the gen_ai.* agent-run or tool-call spans. If your production workflows were built before n8n 2.33.0 — which is nearly all of them — your most expensive, most failure-prone step appears in the trace as a rectangle with an input item count and an output item count.
Where a "complete" trace quietly stops being complete
Upstream service hits the n8n webhook with W3C trace context. n8n adopts it as the workflow span parent. Trace is intact.
Each node produces a child span with node ID, type, version and item counts. Still intact — but with zero GenAI semantics.
One opaque node.execute span. No model name, no token counts, no per-tool-call children. The cost spike lives inside this rectangle.
A community node or custom fetch that bypasses the n8n HTTP helpers carries no traceparent. The downstream service starts a brand-new root trace.
Resume produces a span link, not a parent. Your waterfall is now two waterfalls and a cross-reference.
The n8n span-propagation checklist
Order matters here, because each step exposes the failure of the previous one.
1. Turn it on everywhere, not just the main instance. In queue mode the OpenTelemetry variables must be set on main, workers and webhook processors; trace context is propagated between instances. Crash detection is the asymmetric case — the instance that notices the crash emits the span, which in queue mode is the main instance, so enabling OTel only on workers loses every platform failure.
# main, workers, webhook processors — all of them
export N8N_OTEL_ENABLED=true
export N8N_OTEL_EXPORTER_OTLP_ENDPOINT=http://collector:4318 # base URL, not /v1/traces
export N8N_AGENTS_TRACING_ENABLED=true
# keep W3C trace context, drop caller-supplied baggage
export OTEL_PROPAGATORS=tracecontext
2. Decide about baggage before it leaves your perimeter. This is the quiet data-governance hole. n8n forwards the caller's baggage entries to every host the execution calls, third-party APIs included, and because the entries come from the caller n8n cannot tell whether they are safe to share. A tenant ID propagating to your vector DB is useful; the same header landing on a third-party enrichment API is a disclosure. Setting OTEL_PROPAGATORS=tracecontext keeps correlation and drops the caller entries. Note also that n8n forwards baggage without recording it, so a tenant.id entry goes out on the wire but never appears as a span attribute — you cannot audit what you forwarded from the traces themselves.
3. Turn off payload capture before you turn on agent tracing. By default, n8n agent tracing records prompts, tool arguments, responses and tool results. That is the correct default for a laptop and the wrong default for a regulated workload. Set N8N_AGENTS_TRACING_RECORD_INPUTS=false and N8N_AGENTS_TRACING_RECORD_OUTPUTS=false, then decide deliberately whether to re-enable them for a sampled subset. Worth contrasting: a Tool Gateway trace records metadata about the call and never contains tool arguments or results — the stricter default, and the right one.
4. Verify the inbound hop with a real caller, not the test button. "Send test trace" confirms the collector accepted a single span — it tells you nothing about whether your upstream service actually sets traceparent. Most do not, unless their HTTP client is instrumented. Check the received header on a staging webhook before you believe any waterfall.
5. Audit which nodes use the n8n HTTP helpers. Outbound injection applies to HTTP Request nodes and other nodes built on the helpers. Community nodes that ship their own HTTP client, and Code-node fetch calls, are the silent trace terminators. There is no supported way to read the active span from the Code node — the setMetadata tracing API is for node authors and is explicitly not available from the Code node. If a hop must be traced, route it through an HTTP Request node or write a custom node. We cover these build patterns in our automation builds.
Cost attribution is a different problem from tracing
Read the n8n span attribute tables end to end and the omission is stark. The workflow span carries workflow, project and execution identifiers, status, retry and crash metadata. The node span carries node ID, name, type, version, input and output item counts. Even the agent-run span records gen_ai.request.model, gen_ai.conversation.id and the serialised prompt — but no token usage attributes. There is no gen_ai.usage.input_tokens on an n8n span. Tracing tells you where time went. It does not tell you where money went.
Attributing spend to an API key instead of a workflow step
The provider invoice is keyed by API key. One key serves twelve workflows, so a 3x cost spike shows up as "OpenAI went up" with no step-level breakdown. Teams then issue a key per workflow, which multiplies secret rotation work and still cannot separate the retry loop from the first attempt inside one workflow.
usage block from the model response in the workflow itself and emit it as a node-level custom span attribute keyed on execution, workflow and node IDs — then join spend to spans in your backend, not to keys on an invoice. Custom span attribute values can be expressions such as ={{ $json.environment }}, and a node author can set them programmatically via setMetadata.Two caveats that will decide your architecture. First, custom span attributes are self-hosted Enterprise only and are not available on n8n Cloud — so on Cloud, per-step cost attribution has to be written to your own sink, not onto the span. Second, n8n does not validate custom keys against the OpenTelemetry semantic conventions, so if your key matches a standard attribute your backend reads your value as that attribute. Do not name your cost field gen_ai.usage.input_tokens unless it genuinely carries that meaning — and if you emit it from a step that batches three model calls, it does not.
Telemetry volume is itself a cost line. n8n exports every trace by default and emits one span per node, so a 40-node workflow at 10,000 executions a day is 400,000 spans a day before you add agent and tool spans. Use N8N_OTEL_TRACES_SAMPLE_RATE — it is a trace ID ratio sampler, so a trace is either fully sampled or fully dropped, which preserves whole waterfalls rather than giving you holes. Microsoft has acknowledged the same pressure: a lower-cost SKU for agent telemetry, with a starter kit and free tier, is described as coming soon. Treat ingest cost as a design input, not a surprise.
Four questions to ask a vendor whose demo shows a clean waterfall
Every agent platform demo in November 2026 shows the same slide: a tidy nested timeline, an agent span, three tool spans, a cost figure. Here is what to ask before you sign.
1. "Show me the raw OTLP payload for one span, not the UI." You are checking which attributes are gen_ai.* versus vendor-prefixed, and which semconv version they target. A product that emits ls_* or n8n.* keys is not wrong — both do, legitimately — but every vendor-prefixed key is a field you will remap in your collector.
2. "Do you read and write W3C traceparent on every ingress and egress, or only your own header?" Ask specifically about the async boundaries: queue hops, retries, resumed runs after an approval. Then ask whether a resumed run produces a child span or a span link, because that single answer determines whether your incident reviews involve one trace or three.
3. "What is in the span body, where is it stored, and what is redacted before export?" Prompts and responses are the most sensitive payload in the stack. Microsoft is unusually candid here: protected tables give separate RBAC for GenAI content and PII redaction masks configured patterns in Log Analytics, but both are public preview, protecting new content does not protect historical copies elsewhere, and redaction does not guarantee removal of all sensitive content. Demand that level of specificity from everyone else.
4. "Can I export to my own collector, and what does a span cost me at my volume?" If telemetry only lands in the vendor's UI, your correlation story dies the day you add a second vendor. Get the retention window, the sampling defaults, and the per-GB or per-span price in writing. Our model coverage notes and integration work both start from the same assumption: the telemetry is yours.
When not to instrument yet
The honest recommendation is sequenced, not universal.
If you run fewer than roughly a dozen agent workflows and your failures are reproducible from n8n's own execution log, full OTel instrumentation is overhead you will not recoup. n8n's own documentation says OpenTelemetry tracing is in Preview from 2.19.0, may change in future releases, and advises against relying on it in production workflows. That is the vendor telling you the contract is not firm. Take them at their word and keep your instrumentation thin enough to re-do.
Instrument now if any of three conditions hold: a request crosses more than two runtimes you do not control; an approval gate or queue hop sits between the trigger and the model call; or your monthly model spend has moved more than 30% without an obvious cause. Those are the cases where the trace pays for itself in the first incident.
And if you are choosing between the two announcements this week — they solve different halves. Azure Monitor's preview is the stitching layer for runtimes you did not build. Tool Gateway is the identity and audit layer for the tool calls your agents make. LangChain's own framing is that without end-to-end visibility into how agents use tools, security has no way to audit or verify any of it. Both are true, and neither gives you the n8n-to-model-to-webhook-to-approval seam for free. That part is still yours to build. If you want a second pair of eyes on the propagation design before you commit, start here.
Frequently Asked Questions
Does n8n support OpenTelemetry tracing natively?
Yes, in Preview from n8n 2.19.0. It exports one workflow.execute span per execution and one nested node.execute span per node, reads inbound W3C traceparent from webhook requests, and injects traceparent, tracestate and baggage on outbound requests made through the n8n HTTP helpers. The docs label it Preview and advise against relying on it in production workflows, so pin your version and expect change.
Why does my n8n AI Agent node produce no gen_ai spans?
Because the gen_ai.* agent-run and tool-call spans come from n8n's newer Agents feature, available from 2.33.0 and enabled with N8N_AGENTS_TRACING_ENABLED=true. The older AI Agent (LangChain) node only produces a standard node.execute span like any other node. If your workflows predate 2.33.0, migrating the agent step is the prerequisite for any GenAI-semantics tracing, not a configuration flag.
Are the OpenTelemetry GenAI semantic conventions stable?
No. The GenAI conventions now live in their own repository, and the agent and framework spans document carries a status of Development, with the gen_ai.* attributes badged Development rather than Stable. Only borrowed general attributes like error.type and server.address are stable. Adopt them — there is no better cross-vendor option — but pin the semconv version and treat upgrades as schema migrations.
Can I correlate LangSmith Tool Gateway traces with Azure Monitor traces?
Not automatically. Tool Gateway nests tool calls under an agent run using LangSmith's own distributed tracing headers, langsmith-trace and baggage, set per call. Azure Monitor's agent tracing is built on OpenTelemetry and W3C trace context. Joining them means carrying a shared correlation ID in both systems — for example a request ID you set as metadata on the LangSmith side and as a span attribute on the OTel side.
How do I attribute token spend to a specific workflow step?
Not from the trace alone — n8n's documented span attributes include no token usage fields. Capture the usage block from the model response inside the workflow and emit it as a node-level custom span attribute keyed on execution, workflow and node ID, then join spend to spans in your backend. Custom span attributes are self-hosted Enterprise only and unavailable on n8n Cloud, where you will need your own metrics sink instead.
What should I redact before agent telemetry leaves my network?
Three things. Prompts and responses: n8n agent tracing records prompts, tool arguments, responses and tool results by default, so disable inputs and outputs unless you have a reason. Caller baggage: n8n forwards caller entries to every host the execution calls, third parties included, so set OTEL_PROPAGATORS=tracecontext to drop them. And custom attribute values, which the docs explicitly warn should never carry secrets or personal data.
Why do my agent latency percentiles look worse after enabling tracing?
Most likely crashed-execution spans. From n8n 2.42.0 a crashed execution produces a workflow.execute span whose duration is the crash detection lag, not run time — one to two minutes for a stalled queue worker. Exclude n8n.execution.status=crashed from latency metrics and count those spans only toward error rate. Also update alerts that match only error, since stalled jobs now end as crashed.
Research digest
AI Research Briefing
Honest insights on AI agents, Small Language Models, and local RAG. No hype. Only when we have something worth sending.
- No hype, just measurable outcomes
- Read by 2,400+ engineers
- Unsubscribe anytime




