monocle2ai/monocle

Monocle is a framework for tracing GenAI app code. This repo contains implementation of Monocle for GenAI apps written in Python.

55
/ 100
Established

Monocle helps developers and platform engineers building or managing Generative AI applications understand how their code is performing in production. It makes it easy to add instrumentation to your Python application code to capture detailed traces, which can then be sent to your existing cloud observability tools. This helps you monitor and debug the flow of information through your GenAI app, from user input to model responses.

Use this if you are developing or operating GenAI applications and need a consistent way to monitor their behavior and troubleshoot issues in production environments.

Not ideal if you are not working with Generative AI applications or do not require detailed code-level tracing for your existing observability stack.

GenAI-application-development Observability Production-monitoring Debugging Platform-engineering
No Package No Dependents
Maintenance 10 / 25
Adoption 9 / 25
Maturity 16 / 25
Community 20 / 25

How are scores calculated?

Stars

71

Forks

26

Language

Python

License

Apache-2.0

Last pushed

Mar 13, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/generative-ai/monocle2ai/monocle"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.