{"repo":"monocle2ai/monocle","free":true,"listed":false,"github":"https://github.com/monocle2ai/monocle","clone":"git clone https://github.com/monocle2ai/monocle.git","description":"Monocle is a framework for tracing GenAI app code. This repo contains implementation of Monocle for GenAI apps written in Python.","language":"Python","stars":334,"topics":["generative-ai","linux-foundation","llms","observability","oss","python","telemetry","tracing","llm-agent","llm-inference"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Open-source tracing &amp; testing for GenAI apps and agents. A GitHub Star goes a long way. How It Works · Quick Start · Testing · Frameworks · Integrations · Contributing Built under the Linux Foundation AI &amp; Data umbrella, designed to plug into your existing OpenTelemetry stack. With a few lines of code (or none at all), you get rich traces, CI-friendly tests, and deep visibility across LLMs, agents, tools, and vector stores. How it works At its core, Monocle is a GenAI-specific observability layer built on OpenTelemetry . 🧬 Metamodel — defines entities such as agents, prompts, responses, tools, and vector operations, and maps them to standardized span attributes. See the metamodel docs for details. 🔌 Instrumentation adapters — for GenAI frameworks automatically create spans for key operations (agent runs, tool calls, LLM invocations, retrieval queries) without you wiring them manually. 📤 OTLP-compatible traces — your existing collectors, backends, and dashboards just work. Because the traces are structured and consistent, they are easy for humans, dashboards, and even SRE/QA agents to consume. Why developers love Monocle 🔍 Turn black-box agents into step-by-step traces — see every model call, tool invocation, vector lookup, and intermediate state in one connected timeline. 🧩 Works with the GenAI stack you already use — LangChain, LlamaIndex, Haystack, Google ADK, OpenAI, Anthropic and more are supported through first-class instrumentation. 📡 Speaks OpenTelemetry ","default_branch":null,"files":null,"tree":[],"storefront":"/r/monocle2ai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/monocle2ai/monocle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}