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

feat: implement transaction context #389

Merged
merged 8 commits into from
Nov 24, 2024
Merged

feat: implement transaction context #389

merged 8 commits into from
Nov 24, 2024

Conversation

lukas-reining
Copy link
Member

@lukas-reining lukas-reining commented Nov 16, 2024

Implements transaction context as described in #292.
This is done the same as in Node, the callback we have for Node is not needed with context vars, like it is in Java.

@federicobond just after I did the changes I saw you PR from May:
Sorry, I could have just continued test on this one.
We basically did the same but I added some tests also for the context merging.

Copy link

codecov bot commented Nov 16, 2024

Codecov Report

Attention: Patch coverage is 99.30070% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.68%. Comparing base (f024a6f) to head (353fa1f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...on_context/no_op_transaction_context_propagator.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
+ Coverage   97.41%   97.68%   +0.26%     
==========================================
  Files          26       31       +5     
  Lines        1239     1382     +143     
==========================================
+ Hits         1207     1350     +143     
  Misses         32       32              
Flag Coverage Δ
unittests 97.68% <99.30%> (+0.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@lukas-reining lukas-reining force-pushed the feat/transaction-context branch 2 times, most recently from 025121a to 4675572 Compare November 16, 2024 15:35
Signed-off-by: Lukas Reining <lukas.reining@codecentric.de>
Signed-off-by: Lukas Reining <lukas.reining@codecentric.de>
Signed-off-by: Lukas Reining <lukas.reining@codecentric.de>
Signed-off-by: Lukas Reining <lukas.reining@codecentric.de>
@lukas-reining lukas-reining marked this pull request as ready for review November 16, 2024 15:55
@lukas-reining lukas-reining requested review from a team November 16, 2024 16:02
Signed-off-by: Lukas Reining <lukas.reining@codecentric.de>
Copy link
Member

@gruebel gruebel left a comment

Choose a reason for hiding this comment

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

nice work, just added a few minor comments

…agator.py

Co-authored-by: Anton Grübel <anton.gruebel@gmail.com>
Signed-off-by: Lukas Reining <lukas.reining@codecentric.de>
Signed-off-by: Lukas Reining <lukas.reining@codecentric.de>
@gruebel
Copy link
Member

gruebel commented Nov 19, 2024

I'll give @federicobond till end of week to leave some comments, otherwise will merge this and close the previous draft.

@gruebel gruebel merged commit 9b97130 into main Nov 24, 2024
15 checks passed
@gruebel gruebel deleted the feat/transaction-context branch November 24, 2024 16:54
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