Add JavaScript span transform plugins - #28
Open
Stephen Belanger (Qard) wants to merge 8 commits into
Open
Conversation
Stephen Belanger (Qard)
marked this pull request as ready for review
August 21, 2026 15:17
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Stephen Belanger (Qard)
requested review from
Abhijeet Prasad (AbhiPrasad) and
Andrew Kent (realark)
August 21, 2026 15:17
Stephen Belanger (Qard)
force-pushed
the
t3code/explore-rquickjs-span-plugins
branch
from
August 24, 2026 11:54
af6b477 to
41bd374
Compare
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.
Summary
rquickjs-serde, using strict result decoding without intermediate JSON textExample
Create a synchronous ES module:
Choose the scope when registering it:
Each function receives the previous plugin's returned span plus
{ operation, source, session_id, env }. Plugins may change span content but notspan_id,root_span_id, orparent_span_ids.Raw input events are journaled before transformation. On recovery, an ordinary session uses the current globally configured plugin chain, while an isolated managed session continues using its invocation-local chain. Import and attach are separate from journal recovery and use only their command-line plugins.
See the README examples for redaction, environment handling, chaining, replay, and security guidance.
Validation
cargo test --manifest-path bt-daemon/Cargo.toml --all-features --lockedcargo clippy --manifest-path bt-daemon/Cargo.toml --all-targets --all-features --locked -- -D warningscargo fmt --manifest-path bt-daemon/Cargo.toml -- --checkcargo metadata --manifest-path bt-daemon/Cargo.toml --locked --no-deps --format-version 1make testgit diff --check