Skip to content

Commit

Permalink
Reduce traces and profiles sampling rate
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Feb 1, 2025
1 parent b33d074 commit 300e04b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Settings(BaseSettings):
if settings.sentry_dsn:
sentry_sdk.init(
dsn=settings.sentry_dsn,
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
traces_sample_rate=0.01,
profiles_sample_rate=0.01,
)

app = FastAPI()
Expand Down Expand Up @@ -89,6 +89,7 @@ async def webhook_github(request: Request):
update_ci_status.send(repo, sha)

forward_webhook.send(webhook_data["payload"], webhook_data["event_type"])

WEBHOOK_SUBMISSIONS.labels(status="success", event_type=event_type).inc()
return {"status": "queued"}

Expand Down

0 comments on commit 300e04b

Please sign in to comment.