We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60eb74c commit ba315f0Copy full SHA for ba315f0
lite_bootstrap/bootstrappers/faststream_bootstrapper.py
@@ -110,8 +110,8 @@ class FastStreamSentryInstrument(SentryInstrument):
110
@dataclasses.dataclass(kw_only=True, frozen=True)
111
class FastStreamPrometheusInstrument(PrometheusInstrument):
112
bootstrap_config: FastStreamConfig
113
- collector_registry: prometheus_client.CollectorRegistry = dataclasses.field(
114
- default_factory=prometheus_client.CollectorRegistry, init=False
+ collector_registry: "prometheus_client.CollectorRegistry" = dataclasses.field(
+ default_factory=lambda: prometheus_client.CollectorRegistry(), init=False
115
)
116
not_ready_message = (
117
PrometheusInstrument.not_ready_message
0 commit comments