Skip to content

Move sampling decision into traces_sampler for occurence consumer.#74426

Closed
antonpirker wants to merge 8 commits into
masterfrom
antonpirker/manual-sampling-cleanup6
Closed

Move sampling decision into traces_sampler for occurence consumer.#74426
antonpirker wants to merge 8 commits into
masterfrom
antonpirker/manual-sampling-cleanup6

Conversation

@antonpirker

Copy link
Copy Markdown
Contributor

Refs #74340

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 17, 2024
@antonpirker antonpirker requested a review from jan-auer July 17, 2024 14:23
@antonpirker antonpirker marked this pull request as ready for review July 17, 2024 14:25
@antonpirker antonpirker requested a review from a team as a code owner July 17, 2024 14:25
op="_process_message",
name="issues.occurrence_consumer",
sampled=True,
custom_sampling_context={"sample_rate": 1.0},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same as in #74425

For now you can also leave sampled=True here. I'd change this only once we get rid of sampled.

@codecov

codecov Bot commented Jul 17, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.11%. Comparing base (0983f50) to head (9831134).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #74426      +/-   ##
==========================================
+ Coverage   78.02%   78.11%   +0.08%     
==========================================
  Files        6677     6677              
  Lines      298750   298750              
  Branches    51433    51433              
==========================================
+ Hits       233107   233369     +262     
+ Misses      59372    59115     -257     
+ Partials     6271     6266       -5     
Files Coverage Δ
src/sentry/issues/occurrence_consumer.py 92.76% <ø> (ø)

... and 34 files with indirect coverage changes

@antonpirker

Copy link
Copy Markdown
Contributor Author

OK, then I will close this for now.

@github-actions github-actions Bot locked and limited conversation to collaborators Aug 2, 2024
@antonpirker antonpirker deleted the antonpirker/manual-sampling-cleanup6 branch July 22, 2025 09:12
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.

2 participants