|
8 | 8 | from lite_bootstrap.instruments.logging_instrument import LoggingConfig, LoggingInstrument |
9 | 9 | from lite_bootstrap.instruments.opentelemetry_instrument import OpentelemetryConfig, OpenTelemetryInstrument |
10 | 10 | from lite_bootstrap.instruments.prometheus_instrument import PrometheusConfig, PrometheusInstrument |
| 11 | +from lite_bootstrap.instruments.pyroscope_instrument import PyroscopeConfig, PyroscopeInstrument |
11 | 12 | from lite_bootstrap.instruments.sentry_instrument import SentryConfig, SentryInstrument |
12 | 13 |
|
13 | 14 |
|
@@ -51,7 +52,9 @@ def __init__( |
51 | 52 |
|
52 | 53 |
|
53 | 54 | @dataclasses.dataclass(kw_only=True, slots=True, frozen=True) |
54 | | -class FastStreamConfig(HealthChecksConfig, LoggingConfig, OpentelemetryConfig, PrometheusConfig, SentryConfig): |
| 55 | +class FastStreamConfig( |
| 56 | + HealthChecksConfig, LoggingConfig, OpentelemetryConfig, PrometheusConfig, PyroscopeConfig, SentryConfig |
| 57 | +): |
55 | 58 | application: "AsgiFastStream" = dataclasses.field(default_factory=AsgiFastStream) |
56 | 59 | opentelemetry_middleware_cls: type[FastStreamTelemetryMiddlewareProtocol] | None = None |
57 | 60 | prometheus_middleware_cls: type[FastStreamPrometheusMiddlewareProtocol] | None = None |
@@ -152,6 +155,7 @@ class FastStreamBootstrapper(BaseBootstrapper["AsgiFastStream"]): |
152 | 155 |
|
153 | 156 | instruments_types: typing.ClassVar = [ |
154 | 157 | FastStreamOpenTelemetryInstrument, |
| 158 | + PyroscopeInstrument, |
155 | 159 | FastStreamSentryInstrument, |
156 | 160 | FastStreamHealthChecksInstrument, |
157 | 161 | FastStreamLoggingInstrument, |
|
0 commit comments