Skip to content

fix: Fix concurrency issues in sanic #123

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

Merged
merged 2 commits into from
Oct 12, 2018
Merged

Conversation

untitaker
Copy link
Member

@untitaker untitaker commented Oct 12, 2018

Fix #120

@codecov-io
Copy link

codecov-io commented Oct 12, 2018

Codecov Report

Merging #123 into master will increase coverage by 0.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #123      +/-   ##
==========================================
+ Coverage   66.92%   66.93%   +0.01%     
==========================================
  Files          25       25              
  Lines        2473     2474       +1     
  Branches      354      354              
==========================================
+ Hits         1655     1656       +1     
  Misses        685      685              
  Partials      133      133
Impacted Files Coverage Δ
sentry_sdk/integrations/sanic.py 76.06% <75%> (+0.2%) ⬆️

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 2b0c68b...756f40c. Read the comment docs.

@untitaker untitaker requested a review from mitsuhiko October 12, 2018 20:16

with hub.push_scope() as scope:
with Hub(hub) as hub:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't think of a testcase that would show copy_context is necessary.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I assume sanic already has one context per request

@untitaker untitaker merged commit 0558edd into master Oct 12, 2018
@untitaker untitaker deleted the fix/sanic-concurrency branch October 12, 2018 20:37
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.

3 participants