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:
Corry Haines 2023-01-04 15:41:27 -08:00 committed by GitHub
parent 801fe2e58a
commit 4547ed1c71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,