Skip to content

Commit

Permalink
Revert "chore: increase sentry sampling rate for capture endpoints" (#…
Browse files Browse the repository at this point in the history
…13399)

Revert "chore: increase sentry sampling rate for capture endpoints (#13376)"

This reverts commit 59962da.
  • Loading branch information
Harry Waye authored Dec 19, 2022
1 parent cba25a9 commit 26c5246
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions posthog/settings/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ def traces_sampler(sampling_context: dict) -> float:
path = sampling_context.get("wsgi_environ", {}).get("PATH_INFO")

# Ingestion endpoints (high volume)
if path.startswith(("/batch", "/capture", "/decide", "/track", "/s", "/e")):
return 0.000001 # 0.0001%
if path.startswith("/batch"):
return 0.00000001 # 0.000001%
# Ingestion endpoints (high volume)
elif path.startswith(("/capture", "/decide", "/track", "/s", "/e")):
return 0.0000001 # 0.00001%
# Probes/monitoring endpoints
elif path.startswith(("/_health", "/_readyz", "/_livez")):
return 0.00001 # 0.001%
Expand Down

0 comments on commit 26c5246

Please sign in to comment.