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

feat: initial sentry setup #71

Merged
merged 3 commits into from
Nov 25, 2022
Merged

feat: initial sentry setup #71

merged 3 commits into from
Nov 25, 2022

Conversation

tiftran
Copy link
Contributor

@tiftran tiftran commented Nov 25, 2022

No description provided.

@tiftran
Copy link
Contributor Author

tiftran commented Nov 25, 2022

used what merino-py has as a reference

SENTRY_TRACE_SAMPLE_RATE = env("SENTRY_TRACE_SAMPLE_RATE", default=1.0)
sentry_sdk.init(
dsn=SENTRY_SDK,
integrations=[DjangoIntegration()],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to specify the environment at the very minimum.

Suggested change
integrations=[DjangoIntegration()],
integrations=[DjangoIntegration()],
environment=SENTRY_ENV,

@@ -140,3 +141,16 @@
},
},
}
# Sentry Setup
SENTRY_SDK = env("SENTRY_SDK", default=None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SENTRY_SDK = env("SENTRY_SDK", default=None)
SENTRY_DSN = env("SENTRY_DSN", default=None)

SENTRY_SDK = env("SENTRY_SDK", default=None)
SENTRY_TRACE_SAMPLE_RATE = env("SENTRY_TRACE_SAMPLE_RATE", default=1.0)
sentry_sdk.init(
dsn=SENTRY_SDK,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dsn=SENTRY_SDK,
dsn=SENTRY_DSN,

Copy link
Contributor

@ncloudioj ncloudioj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+ wc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants