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

ref(metrics): Change push_scope to new_scope #75043

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Jul 26, 2024

sentry_sdk.push_scope is soft-deprecated, and will soon be hard- deprecated (see sentry-python#3347), so replace the push_scope calls with appropriate new API. Here, we use sentry_sdk.new_scope, since we are setting tags for a capture_message call.

Closes #74938

@szokeasaurusrex szokeasaurusrex requested a review from a team as a code owner July 26, 2024 08:12
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 26, 2024
Copy link
Member

@shellmayr shellmayr left a comment

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from szokeasaurusrex/push_scope-mri to master July 26, 2024 08:39
@szokeasaurusrex szokeasaurusrex requested a review from a team as a code owner July 26, 2024 08:39
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.12%. Comparing base (f781d7a) to head (cf287e1).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #75043   +/-   ##
=======================================
  Coverage   78.12%   78.12%           
=======================================
  Files        6748     6748           
  Lines      301190   301189    -1     
  Branches    51831    51830    -1     
=======================================
  Hits       235305   235305           
+ Misses      59555    59554    -1     
  Partials     6330     6330           
Files Coverage Δ
.../sentry_metrics/span_attribute_extraction_rules.py 90.90% <ø> (+2.67%) ⬆️

@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) July 26, 2024 09:08
@szokeasaurusrex szokeasaurusrex disabled auto-merge July 26, 2024 09:09
`sentry_sdk.push_scope` is soft-deprecated, and will soon be hard-
deprecated (see sentry-python#3347), so replace the `push_scope`
calls with appropriate new API. Here, we use `sentry_sdk.new_scope`,
since we are setting tags for a `capture_message` call.

Closes #74938
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/push_scope-metrics branch from 2ec7928 to cf287e1 Compare July 26, 2024 09:09
@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) July 26, 2024 09:39
@szokeasaurusrex szokeasaurusrex merged commit ed28b1f into master Jul 26, 2024
50 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/push_scope-metrics branch July 26, 2024 09:40
@github-actions github-actions bot locked and limited conversation to collaborators Aug 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop using sentry_sdk.push_scope
2 participants