Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] Setup auto IP address fetching for Sentry SDK #618

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions codecov/settings_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@
)
if os.getenv("CLUSTER_ENV"):
sentry_sdk.set_tag("cluster", os.getenv("CLUSTER_ENV"))
sentry_sdk.set_user({"ip_address": "{{auto}}"})

Check warning on line 412 in codecov/settings_base.py

View check run for this annotation

Codecov Notifications / codecov/patch

codecov/settings_base.py#L412

Added line #L412 was not covered by tests
elif IS_DEV:
sentry_sdk.init(
spotlight=IS_DEV,
Expand Down
Loading