stac_auth_proxy.metrics
¶
Optional Prometheus metrics for STAC operations.
classify_operation(method: str, path: str) -> str
¶
Map a request to a low-cardinality STAC operation name.
Source code in src/stac_auth_proxy/metrics.py
37 38 39 40 41 42 | |
instrument_app(app: Any, excluded_handlers: Optional[Sequence[str]] = None) -> None
¶
Instrument a FastAPI app and expose Prometheus metrics when available.
Source code in src/stac_auth_proxy/metrics.py
45 46 47 48 49 50 51 52 | |
record_stac_metrics(info: Info) -> None
¶
Record request count and latency using STAC operation labels.
Source code in src/stac_auth_proxy/metrics.py
72 73 74 75 76 | |