File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
microbootstrap/bootstrappers Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,10 @@ def get_config_type(cls) -> type[FastApiPrometheusConfig]:
122122class FastApiHealthChecksInstrument (HealthChecksInstrument ):
123123 def bootstrap_after (self , application : fastapi .FastAPI ) -> fastapi .FastAPI :
124124 application .include_router (
125- build_fastapi_health_check_router (self .health_check , self .instrument_config .health_checks_path ),
125+ build_fastapi_health_check_router (
126+ health_check = self .health_check ,
127+ health_check_endpoint = self .instrument_config .health_checks_path ,
128+ include_in_schema = self .instrument_config .health_checks_include_in_schema ,
129+ ),
126130 )
127131 return application
Original file line number Diff line number Diff line change @@ -147,8 +147,9 @@ def bootstrap_before(self) -> dict[str, typing.Any]:
147147 return {
148148 "route_handlers" : [
149149 build_litestar_health_check_router (
150- self .health_check ,
151- self .instrument_config .health_checks_path ,
150+ health_check = self .health_check ,
151+ health_check_endpoint = self .instrument_config .health_checks_path ,
152+ include_in_schema = self .instrument_config .health_checks_include_in_schema ,
152153 ),
153154 ],
154155 }
You can’t perform that action at this time.
0 commit comments