Skip to content

feat: unify instrument skip feedback through warning subclasses#86

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

feat: unify instrument skip feedback through warning subclasses#86
lesnik512 merged 1 commit intomainfrom
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
Copy link
Copy Markdown

codecov Bot commented May 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
lite_bootstrap/__init__.py 100.00% <ø> (ø)
lite_bootstrap/bootstrappers/base.py 100.00% <100.00%> (ø)
lite_bootstrap/exceptions.py 100.00% <100.00%> (ø)
tests/test_free_bootstrap.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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