Skip to main content
To send OpenTelemetry metrics and traces generated by Traceloop from your LLM Application to Middleware, Follow the below steps.
1

Get your Middleware credentials

2

Add the following lines to your application code:

Replace:
  1. MW_TARGET with your middleware target url
  • Example - https://abcde.middleware.io
  1. 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:
  1. Log in to your Middleware account
  2. Navigate to the LLM Observability Section in the sidebar