mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
Enable HTTPX integration in Sentry (#352)
I don't know a whole lot about HTTPX, but it seems Sentry has an integration for it. Should it be enabled?
This commit is contained in:
parent
801fe2e58a
commit
4547ed1c71
1 changed files with 3 additions and 0 deletions
|
@ -335,10 +335,13 @@ if SETUP.USE_PROXY_HEADERS:
|
|||
|
||||
|
||||
if SETUP.SENTRY_DSN:
|
||||
from sentry_sdk.integrations.httpx import HttpxIntegration
|
||||
|
||||
sentry_sdk.init(
|
||||
dsn=SETUP.SENTRY_DSN,
|
||||
integrations=[
|
||||
DjangoIntegration(),
|
||||
HttpxIntegration(),
|
||||
],
|
||||
traces_sample_rate=SETUP.SENTRY_TRACES_SAMPLE_RATE,
|
||||
sample_rate=SETUP.SENTRY_SAMPLE_RATE,
|
||||
|
|
Loading…
Reference in a new issue