Skip to content

Conversation

@tabkram
Copy link
Owner

@tabkram tabkram commented Aug 8, 2025

feat: Make context injection optional in trace decorator.

This change introduces an injectContextInArgs option to the trace decorator, defaulting to false, allowing users to control whether the trace context is automatically injected into the decorated function's arguments.
The change aims to provide greater flexibility when tracing code execution.

@tabkram tabkram changed the title feat: make context injection into functions optional by default when we trace feat: make context injection into functions optional when we trace Aug 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
96.13% (-0.05% 🔻)
397/413
🟢 Branches
87.78% (+0.32% 🔼)
237/270
🟢 Functions 94.74% 108/114
🟢 Lines
96.68% (-0.04% 🔻)
379/392

Test suite run success

85 tests passing in 12 suites.

Report generated by 🧪jest coverage report action from 1aa31a0

@tabkram tabkram added the deploy deploy a canary version to NPM label Aug 8, 2025
@tabkram tabkram force-pushed the feature/trace-context branch from 0408d68 to af2f788 Compare August 8, 2025 15:34
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

🚫 Unpublished versions: ∅
Created Version: 3.5.0-canary.71.ba5348f
📦 Published on NPM: View on NPM

⚠️ Note: This version is temporary and will be unpublished on the next PR update or merge.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

🚫 Unpublished versions: 3.5.0-canary.71.ba5348f
Created Version: 3.5.0-canary.71.8f4337b
📦 Published on NPM: View on NPM

⚠️ Note: This version is temporary and will be unpublished on the next PR update or merge.

…we `trace`

feat: make context injection into functions optional by default when we `trace`
@tabkram tabkram force-pushed the feature/trace-context branch from b34a8d6 to 1e9cf2a Compare August 8, 2025 15:47
Removes the `prepare` script which only ran `npm audit`.

This script is unnecessary as `npm audit` is not needed in the publish lifecycle.
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

🚫 Unpublished versions: 3.5.0-canary.71.8f4337b
Created Version: 3.5.0-canary.71.586ccae
📦 Published on NPM: View on NPM

⚠️ Note: This version is temporary and will be unpublished on the next PR update or merge.

@tabkram tabkram merged commit f764fe5 into main Aug 8, 2025
8 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

🚫 Unpublished versions: 3.5.0-canary.71.586ccae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy deploy a canary version to NPM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants