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

Add log_kwargs to bind_extra_task_metadata #485

Merged
merged 2 commits into from
Mar 18, 2024
Merged

Add log_kwargs to bind_extra_task_metadata #485

merged 2 commits into from
Mar 18, 2024

Conversation

jrobichaud
Copy link
Owner

Closes #484

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (6f7233d) to head (88d5506).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #485   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           32        32           
  Lines          502       502           
  Branches        28        28           
=========================================
  Hits           502       502           

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

)
logger.info("request_started", **log_kwargs)
Copy link

Choose a reason for hiding this comment

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

Could you add please the same logic to request_finished and request_failed events? So it would be possible to remove/modify their context (code and request) as well.

Copy link
Owner Author

Choose a reason for hiding this comment

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

there you go.

Copy link

Choose a reason for hiding this comment

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

Looks perfect. Many thanks!

@jrobichaud jrobichaud requested a review from shtoltz March 15, 2024 18:18
@jrobichaud jrobichaud merged commit 1065fa2 into main Mar 18, 2024
15 checks passed
@jrobichaud jrobichaud deleted the log_kwargs branch March 18, 2024 12:48
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.

Allow configure log context for request_* events
2 participants