Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix context manager for older node versions #53

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

owais
Copy link
Contributor

@owais owais commented Mar 29, 2021

Description

Async hooks context manager needs to be activated by calling .enable()
before it can be used as a context manager. This is important for older
versions of node that don't use support local storage context manager.

We need to release this as a hot fix. Will follow up with a test case to catch any regressions in future.

fixes #50

Async hooks context manager needs to be activated by calling `.enable()`
before it can be used as a context manager. This is important for older
versions of node that don't use support local storage context manager.
@owais owais force-pushed the fix-ctx-manager-for-node-14_7-and-older branch from eab8604 to ee9bb13 Compare March 29, 2021 17:12
@owais owais requested review from seemk, a team and johnbley March 29, 2021 17:12
@codecov-io
Copy link

Codecov Report

Merging #53 (ee9bb13) into main (9988fae) will increase coverage by 0.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
+ Coverage   85.62%   85.79%   +0.17%     
==========================================
  Files          10       10              
  Lines         167      169       +2     
  Branches       29       29              
==========================================
+ Hits          143      145       +2     
  Misses         24       24              
Impacted Files Coverage Δ
src/tracing.ts 96.29% <100.00%> (+0.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9988fae...ee9bb13. Read the comment docs.

@owais owais merged commit cd1fdda into main Mar 29, 2021
@owais owais deleted the fix-ctx-manager-for-node-14_7-and-older branch March 29, 2021 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jaeger traces don't seem to be getting suppressed w/ v0.5.0
2 participants