Skip to content

Commit 3e77f97

Browse files
authored
Enhance InstrumentsSetupper to include Pyroscope for monitoring (#100)
1 parent 0b480ee commit 3e77f97

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ application: litestar.Litestar = (
632632
633633
### Using microbootstrap without a framework
634634
635-
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.
635+
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.
636636
637637
You can use `InstrumentsSetupper` as a context manager, like this:
638638

microbootstrap/instruments_setupper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from microbootstrap.instruments.instrument_box import InstrumentBox
66
from microbootstrap.instruments.logging_instrument import LoggingInstrument
77
from microbootstrap.instruments.opentelemetry_instrument import OpentelemetryInstrument
8+
from microbootstrap.instruments.pyroscope_instrument import PyroscopeInstrument
89
from microbootstrap.instruments.sentry_instrument import SentryInstrument
910

1011

@@ -67,3 +68,4 @@ def __exit__(self, *args: object) -> None:
6768
InstrumentsSetupper.use_instrument()(LoggingInstrument)
6869
InstrumentsSetupper.use_instrument()(SentryInstrument)
6970
InstrumentsSetupper.use_instrument()(OpentelemetryInstrument)
71+
InstrumentsSetupper.use_instrument()(PyroscopeInstrument)

0 commit comments

Comments
 (0)