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

DjangoIntegration example disables LoggingIntegration #1044

Closed
horida opened this issue Jun 5, 2019 · 1 comment
Closed

DjangoIntegration example disables LoggingIntegration #1044

horida opened this issue Jun 5, 2019 · 1 comment

Comments

@horida
Copy link

horida commented Jun 5, 2019

Conncerning the documentation of the django integration (maybe others as well): https://docs.sentry.io/platforms/python/django/

The example to integrate django is

sentry_sdk.init(
    dsn="https://c0aea1807448476b838f70c2edf9cf8a@sentry.io/122455",
    integrations=[DjangoIntegration()]
)

And in the behaviour description you say that

Logging with any logger will create breadcrumbs when the Logging integration is enabled (done by default).

However, this is not true, since integrations is only set to DjangoIntegrations in the example.

Am I missing something?

@untitaker
Copy link
Member

The logging integration is enabled by default. The example at https://docs.sentry.io/platforms/python/logging/ shows the used parameters.

If you want to disable default integrations you need to pass default_integrations=False. If you want to change settings on the integration, pass an explicit instance (which overwrites the implicit one)

@horida horida closed this as completed Jun 6, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants