Integrations
LLM Observability with Middleware and OpenLLMetry
To send OpenTelemetry metrics and traces generated by Traceloop from your LLM Application to Middleware, Follow the below steps.
1
Get your Middleware credentials
- Sign in to your Middleware account.
- Go to settings and click on API Key. Link
- Copy and Save the value for
MW_API_KEY
andMW_TARGET
2
Add the following lines to your application code:
Replace:
MW_TARGET
with your middleware target url
- Example -
https://abcde.middleware.io
MW_API_KEY
with your middleware api key.
- Example - nxhqwpbvcmlkjhgfdsazxcvbnmkjhgtyui
Refer to the Traceloop Docs for more advanced configurations and use cases.
For detailed information on LLM Observability with Middleware and Traceloop, consult Middleware Documentation: LLM Observability Documentation.
3
Visualize in Middleware
Once your LLM application is instrumented, you can view the traces, metrics and dashboards in the Middleware LLM Observability section. To access this:
- Log in to your Middleware account
- Navigate to the LLM Observability Section in the sidebar