Skip to content

Commit 6bb2ccd

Browse files
committed
Pass prometheus_metrics_include_in_schema to include_in_schema
1 parent 175ff45 commit 6bb2ccd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

microbootstrap/bootstrappers/fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def bootstrap_after(self, application: fastapi.FastAPI) -> fastapi.FastAPI:
106106
).expose(
107107
application,
108108
endpoint=self.instrument_config.prometheus_metrics_path,
109-
include_in_schema=False,
109+
include_in_schema=self.instrument_config.prometheus_metrics_include_in_schema,
110110
**self.instrument_config.prometheus_expose_params,
111111
)
112112
return application

microbootstrap/bootstrappers/litestar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class LitestarPrometheusInstrument(PrometheusInstrument[LitestarPrometheusConfig
126126
def bootstrap_before(self) -> dict[str, typing.Any]:
127127
class LitestarPrometheusController(PrometheusController):
128128
path = self.instrument_config.prometheus_metrics_path
129-
include_in_schema = False
129+
include_in_schema = self.instrument_config.prometheus_metrics_include_in_schema
130130
openmetrics_format = True
131131

132132
litestar_prometheus_config: typing.Final = PrometheusConfig(

0 commit comments

Comments
 (0)