Troubleshooting¶
MkDocs build fails on API reference¶
If mkdocs build --strict fails with errors like “could not collect profilis...”:
- Ensure the package is importable:
pip install -e .
mkdocs build --strict
- Or ensure
mkdocstringsis configured withpaths: [src]inmkdocs.yml(this repo does).
No events / empty dashboard¶
- Verify your app is instrumented (adapter/middleware installed).
- Verify you created an
AsyncCollectorand that it’s not immediately garbage collected. - If using sampling, temporarily set it to 1.0 to confirm wiring.
High memory usage¶
- Reduce
queue_sizeand/orbatch_max. - Lower sampling rate.
- Enable
drop_oldest=Trueif you prefer bounded memory under load.
Missing Prometheus metrics¶
- Confirm you’re scraping the correct path (
/metrics). - Ensure you used a
CollectorRegistry()that matches the exporter and the served endpoint.