Nothing Special   »   [go: up one dir, main page]

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: include_tracing_fields arg to control unvetted data in rust_tracing integration #3780

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

matt-codecov
Copy link
Contributor

implemented my suggestion from #3778 so that if anton agrees we can merge this before the weekend

this PR renames the send_sensitive_data flag to include_tracing_fields. the data in question is generally data the user expects tracing to record or data they explicitly passed into a log statement to be recorded, so if we call it "sensitive" they may think we are referring to something else

also, this PR applies the same condition to both on_record() and on_new_span(). both callbacks set the same fields, so they should either both be redacted or both be allowed. previously only on_record() had the condition applied.


Thank you for contributing to sentry-python! Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval. The AWS Lambda tests additionally require a maintainer to add a special label, and they will fail until this label is added.

Copy link
codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.30%. Comparing base (4bec4a4) to head (10e3d9c).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3780      +/-   ##
==========================================
+ Coverage   84.26%   84.30%   +0.03%     
==========================================
  Files         137      137              
  Lines       14558    14561       +3     
  Branches     2459     2460       +1     
==========================================
+ Hits        12268    12275       +7     
+ Misses       1530     1528       -2     
+ Partials      760      758       -2     
Files with missing lines Coverage Δ
sentry_sdk/integrations/rust_tracing.py 84.61% <100.00%> (+0.32%) ⬆️

... and 2 files with indirect coverage changes

Copy link
Member
@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

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

Yeah! This looks nice!

@antonpirker antonpirker merged commit da0b086 into getsentry:master Nov 15, 2024
136 checks passed
antonpirker pushed a commit to getsentry/sentry-docs that referenced this pull request Nov 21, 2024
A new Python SDK integration was created in getsentry/sentry-python#3717 + getsentry/sentry-python#3780 and this PR documents it.
JoshuaMoelans pushed a commit to getsentry/sentry-docs that referenced this pull request Nov 22, 2024
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.

2 participants