Skip to content

fix teardown isolation, OTel provider init order, and FastAPI install…#75

Merged
lesnik512 merged 1 commit intomainfrom
fix-teardown-otel-fastapi
Apr 26, 2026
Merged

fix teardown isolation, OTel provider init order, and FastAPI install…#75
lesnik512 merged 1 commit intomainfrom
fix-teardown-otel-fastapi

Conversation

@lesnik512
Copy link
Copy Markdown
Member

… guard

  • base.py: teardown now runs in LIFO order and isolates per-instrument errors
  • opentelemetry_instrument.py: call set_tracer_provider before adding processors/instrumentors
  • fastapi_bootstrapper.py: explicit RuntimeError if fastapi is not installed

… guard

- base.py: teardown now runs in LIFO order and isolates per-instrument errors
- opentelemetry_instrument.py: call set_tracer_provider before adding processors/instrumentors
- fastapi_bootstrapper.py: explicit RuntimeError if fastapi is not installed
@lesnik512 lesnik512 self-assigned this Apr 26, 2026
@lesnik512 lesnik512 merged commit dca3e86 into main Apr 26, 2026
7 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 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/bootstrappers/base.py 100.00% <100.00%> (ø)
...te_bootstrap/bootstrappers/fastapi_bootstrapper.py 100.00% <100.00%> (ø)
..._bootstrap/instruments/opentelemetry_instrument.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.

@lesnik512 lesnik512 deleted the fix-teardown-otel-fastapi branch April 26, 2026 15:20
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