Enable logging by default [Python] · Issue #6195 · getsentry/sentry-python · GitHub
Skip to content

Enable logging by default [Python] #6195

Description

@dingsdax

Changes to current state denoted with ⚙️.

  • enable_logs is removed/is made no-op ⚙️
  • enable_metrics is removed/is made no-op ⚙️
  • sentry_sdk.logger.X and metrics APIs always work without any extra opt-in⚙️
  • LoguruIntegration and LoggingIntegration both get a new integration level option (name TBD, maybe capture_sentry_logs?), default False ⚙️
    • in the integration, we'll capture logs as Sentry logs iff integration-level capture_sentry_logs is True ⚙️
  • the existing sentry_logs_level logic/default applies as before — it's just gated behind the additional capture_sentry_logs option

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions