Skip to content

Commit

Permalink
Lower the Sentry transaction sample rate (#2538)
Browse files Browse the repository at this point in the history
Lower the Sentry transaction sample rate

To lower the amount of data we are sending to Sentry. Related to #2526

Reviewed-by: Maja Massarini
  • Loading branch information
softwarefactory-project-zuul[bot] authored Sep 23, 2024
2 parents cc76185 + b56fd97 commit 4507b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packit_service/sentry_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def traces_sampler(sampling_context: Dict) -> float:
if rate := getenv("SENTRY_TRACES_SAMPLE_RATE"):
return float(rate)
# TODO: Take sampling_context into account
return 0.25 if getenv("DEPLOYMENT") == "prod" else 1.0
return 0.1 if getenv("DEPLOYMENT") == "prod" else 0.25


@only_once
Expand Down

0 comments on commit 4507b83

Please sign in to comment.