Type-annotated metric variables (e.g. `geojson_cache_operations: Counter`) don't exist as importable names until init_metrics() runs. Switch all `from api.metrics import <metric>` to `import api.metrics as m` and access instruments as attributes at runtime to avoid ImportError. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| circuit_breaker.py | ||
| districts.py | ||
| exceptions.py | ||
| floorplan.py | ||
| osrm_client.py | ||
| otp_client.py | ||
| query.py | ||
| route_serializer.py | ||
| routing.py | ||
| throttle_detector.py | ||
| utils.py | ||