feat: unify instrument skip feedback through warning subclasses by lesnik512 · Pull Request #86 · modern-python/lite-bootstrap · GitHub
Skip to content

feat: unify instrument skip feedback through warning subclasses#86

Merged
lesnik512 merged 1 commit into
mainfrom
fix/instrument-skip-warnings
May 2, 2026
Merged

feat: unify instrument skip feedback through warning subclasses#86
lesnik512 merged 1 commit into
mainfrom
fix/instrument-skip-warnings

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Both bootstrap skip paths (missing dependency, not ready) now emit warnings.warn with distinct UserWarning subclasses (InstrumentDependencyMissingWarning, InstrumentNotReadyWarning, sharing InstrumentSkippedWarning base) so users can filter, capture, or escalate each independently. Previously not-ready skips went to logger.info and were silently dropped before the logging instrument finished bootstrapping.

Also drop stale service_debug=False notes from the docs (logging is now gated by logging_enabled, default True).

Both bootstrap skip paths (missing dependency, not ready) now emit
warnings.warn with distinct UserWarning subclasses
(InstrumentDependencyMissingWarning, InstrumentNotReadyWarning, sharing
InstrumentSkippedWarning base) so users can filter, capture, or escalate
each independently. Previously not-ready skips went to logger.info and
were silently dropped before the logging instrument finished bootstrapping.

Also drop stale service_debug=False notes from the docs (logging is now
gated by logging_enabled, default True).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@lesnik512 lesnik512 self-assigned this May 2, 2026
@lesnik512 lesnik512 merged commit 2db731f into main May 2, 2026
7 checks passed
@lesnik512 lesnik512 deleted the fix/instrument-skip-warnings branch May 2, 2026 17:06
@codecov

codecov Bot commented May 2, 2026

Copy link
Copy Markdown

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.

1 participant