Comparing 0.28.0...0.28.1 · modern-python/lite-bootstrap · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: modern-python/lite-bootstrap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.28.0
Choose a base ref
...
head repository: modern-python/lite-bootstrap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.28.1
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on May 13, 2026

  1. fix: prevent FastStream bootstrap NameError when optional extras are …

    …missing
    
    Two code paths in FastStreamBootstrapper referenced symbols from optional
    extras unconditionally, bypassing the check_dependencies skip-with-warning
    machinery and raising NameError at bootstrap time when prometheus_client
    or opentelemetry was absent (issue #87).
    
    - BaseBootstrapper._register_or_skip now calls check_dependencies on the
      instrument class before instantiation, so an instrument whose __init__
      references gated symbols (e.g. FastStreamPrometheusInstrument's
      collector_registry default_factory) is skipped cleanly.
    - FastStreamHealthChecksInstrument.bootstrap guards the tracer reference
      with import_checker.is_opentelemetry_installed so the default
      opentelemetry_generate_health_check_spans=True no longer crashes
      installs without the opentelemetry extra.
    - Adds regression tests plus a conftest helper that wipes the bootstrapper
      module's globals before reload, so the conditional-import branches
      re-evaluate against the patched import_checker flags.
    
    Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
    lesnik512 and claude committed May 13, 2026
    Configuration menu
    Copy the full SHA
    b5e00a2 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #88 from modern-python/87-faststream-bootstrapper-…

    …nameerror-when-prometheus-opentelemetry-extras-are-not-installed
    
    fix: prevent FastStream bootstrap NameError when optional extras are missing
    lesnik512 authored May 13, 2026
    Configuration menu
    Copy the full SHA
    57d2c59 View commit details
    Browse the repository at this point in the history
Loading