Monocle helps developers and platform engineers building or managing GenAI apps monitor these in prod by making it easy to instrument their code to capture traces that are compliant with the open-source cloud-native observability ecosystem.
View on Github
npm install --save monacle2ai
const { setupMonocle } = require("monacle2ai")
setup_monocle_telemetry(workflow_name="your-app-name")
pip install monocle_apptrace
python -m monocle_apptrace your-app-name.py
from monocle_apptrace.instrumentation.common.instrumentor import setup_monocle_telemetry
main()
function
setup_monocle_telemetry(workflow_name="your-app-name")
By default Monocle traces are written out to a json file monocle_trace_<workflow>_<traceID>_<timestamp>.json
in the directory where the application is executed. Checkout this example