Skip to content

Commit

Permalink
chore: increase sentry sampling rate for capture endpoints (#13376)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvello authored Dec 19, 2022
1 parent 598baaf commit 59962da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions posthog/settings/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ def traces_sampler(sampling_context: dict) -> float:
path = sampling_context.get("wsgi_environ", {}).get("PATH_INFO")

# Ingestion endpoints (high volume)
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%
if path.startswith(("/batch", "/capture", "/decide", "/track", "/s", "/e")):
return 0.000001 # 0.0001%
# Probes/monitoring endpoints
elif path.startswith(("/_health", "/_readyz", "/_livez")):
return 0.00001 # 0.001%
Expand Down

0 comments on commit 59962da

Please sign in to comment.