Repository navigation
feat(n8n): add workflow and node execution tracing - #280
Merged
Merged
Conversation
nik13
added a commit
that referenced
this pull request
Nov 9, 2026
…red workspace build #280 added @traceai/n8n to build:consumers, but the train kept dev's reformatted list. Every other workspace package is in the build lists; add the three new packages next to their alphabetical neighbours.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
I add
@traceai/n8nfor self-hostedn8n-core >=2.16.1 <3: a workflow span per engine run and child spans for node execution attempts. I preserve the returnedPCancelableand cover resolved errors, retries and cancellation. I support automatic CommonJS loading and explicit instrumentation of an already-loaded engine.Why?
Refs #97. I keep this slice to execution metadata, timing and status. I exclude workflow items, node parameters, credentials and exception messages/stacks. Existing LLM instrumentors can create children under the active node span.
I integrated current
dev(547879ce) in8b71d74b. I registered the package/runtime version with release-please and included it in the workspace build. The lockfile conflict resolution preserves both upstream's new coverage dependency and the n8n dependencies; all existing upstream lock entries are unchanged. The n8n implementation and tests are identical to8f3f81dc.How was it tested?
Current-source Linux validation checks out
8b71d74b7876108e14862cbc3b1fc07de756bf5d:[email protected]/[email protected]: output preservation, context, resolved failures, error continuation, retries, cancellation, concurrent runs, suppression, disable/restore and fresh-process automatic loading. I use local nodes and an in-memory exporter; I do not mock n8n modules.Notes for reviewers
I document the self-hosted setup and compatibility limits. This is engine-process tracing; I have not implemented queue context propagation, persisted context across waiting/resumed runs, n8n Cloud setup or payload capture. Automatic hooks cover CommonJS loading of n8n; native ESM loading of the engine is not covered. I have not published the package to npm or repeated these updated checks on Windows. Upstream review and CI authorization remain required.