Skip to content

fix(python-sdk): document logger ignore list separation and ASGI chained exception option#77

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-sentry-python-sdk
Draft

fix(python-sdk): document logger ignore list separation and ASGI chained exception option#77
Copilot wants to merge 2 commits intomainfrom
copilot/update-sentry-python-sdk

Conversation

Copy link
Contributor

Copilot AI commented Mar 24, 2026

SDK PRs getsentry/sentry-python#5698 and #5714 introduced new public API and config that the skill doesn't cover.

references/logging.md — new logger ignore helpers

ignore_logger() now only suppresses breadcrumbs/events, not Sentry Logs. New helpers:

from sentry_sdk.integrations.logging import (
    ignore_logger,                      # breadcrumbs + events only
    ignore_logger_for_sentry_logs,      # Sentry Logs only
    unignore_logger,                    # reverse ignore_logger()
    unignore_logger_for_sentry_logs,    # reverse ignore_logger_for_sentry_logs()
)
  • Added explanation of separate ignore lists with code examples
  • Added helper summary table and three new Decision Table entries
  • Added two troubleshooting entries for the new behavior

SKILL.md — experimental ASGI option

  • Added suppress_asgi_chained_exceptions to troubleshooting table (experimental, under _experiments, defaults to True)
Original prompt

This section details on the original issue you should resolve

<issue_title>[skill-drift] sentry-python-sdk may need updates</issue_title>
<issue_description>cc @getsentry/owners-python-sdk

SDK Changes Detected

The following PRs were merged to getsentry/sentry-python in the last 7 days that may affect the sentry-python-sdk skill:

Potential Skill Gaps

  1. New Config Option: PR #5714 adds the experimental suppress_asgi_chained_exceptions init option (defaults to True). When set to False, chained exceptions in ASGI middleware are no longer suppressed. This option is not mentioned in SKILL.md or any reference files.

  2. New Logging Helpers: PR #5698 splits the internal logger ignore list into two independent sets and exposes new public helpers:

    • ignore_logger_for_sentry_logs(name) — silences a logger for structured Sentry Logs only (without affecting breadcrumbs or error events)
    • unignore_logger(name) / unignore_logger_for_sentry_logs(name) — reverse the ignore

    The current references/logging.md documents ignore_logger() (which affects breadcrumbs and error events) but does not mention the new ignore_logger_for_sentry_logs() helper. This is especially relevant for framework loggers like django.server that are silenced by default for error events but should still be captured as Sentry Logs.

Skill Files to Review

  • skills/sentry-python-sdk/SKILL.md
  • skills/sentry-python-sdk/references/logging.md

Priority

MEDIUM — New config option for ASGI exception handling and new public API for log filtering that changes observable behavior.

Generated by SDK Skill Drift Detector ·

  • expires on Apr 6, 2026, 11:02 PM UTC

Comments on the Issue (you are @copilot in this section)

Custom agent used: skill-updater
Expert Sentry SDK skill author that updates and creates SDK skill bundles. Specializes in researching SDK changes, verifying APIs against official docs and source code, and producing high-quality wizard flows with deep-dive reference files. Use when updating skills after SDK changes, creating new skills for new platforms, or fixing skill drift issues.


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

…exception option

- Add ignore_logger_for_sentry_logs(), unignore_logger(), unignore_logger_for_sentry_logs() to logging.md
- Document separate ignore lists for events/breadcrumbs vs Sentry Logs
- Add helper summary table and updated Decision Table entries
- Add troubleshooting entries for new ignore list behavior
- Add suppress_asgi_chained_exceptions experimental option to SKILL.md troubleshooting

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>

Co-authored-by: HazAT <363802+HazAT@users.noreply.github.com>
Agent-Logs-Url: https://github.com/getsentry/sentry-for-ai/sessions/b0980f59-78ce-44bc-8009-8fb99c26ef62
Copilot AI changed the title [WIP] Update sentry-python-sdk for new config options fix(python-sdk): document logger ignore list separation and ASGI chained exception option Mar 24, 2026
Copilot AI requested a review from HazAT March 24, 2026 15:45
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.

[skill-drift] sentry-python-sdk may need updates

2 participants