Skip to content

Add PyroscopeInstrument to InstrumentsSetupper #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ application: litestar.Litestar = (

### Using microbootstrap without a framework

When working on projects that don't use Litestar or FastAPI, you can still take advantage of monitoring and logging capabilities using `InstrumentsSetupper`. This class sets up Sentry, OpenTelemetry, and Logging instruments in a way that's easy to integrate with your project.
When working on projects that don't use Litestar or FastAPI, you can still take advantage of monitoring and logging capabilities using `InstrumentsSetupper`. This class sets up Sentry, OpenTelemetry, Pyroscope and Logging instruments in a way that's easy to integrate with your project.

You can use `InstrumentsSetupper` as a context manager, like this:

Expand Down
2 changes: 2 additions & 0 deletions microbootstrap/instruments_setupper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from microbootstrap.instruments.instrument_box import InstrumentBox
from microbootstrap.instruments.logging_instrument import LoggingInstrument
from microbootstrap.instruments.opentelemetry_instrument import OpentelemetryInstrument
from microbootstrap.instruments.pyroscope_instrument import PyroscopeInstrument
from microbootstrap.instruments.sentry_instrument import SentryInstrument


Expand Down Expand Up @@ -67,3 +68,4 @@ def __exit__(self, *args: object) -> None:
InstrumentsSetupper.use_instrument()(LoggingInstrument)
InstrumentsSetupper.use_instrument()(SentryInstrument)
InstrumentsSetupper.use_instrument()(OpentelemetryInstrument)
InstrumentsSetupper.use_instrument()(PyroscopeInstrument)
Loading