Skip to main content

Introduction to Laminar

Laminar is an open-source platform for tracing and evaluating AI applications. Laminar is fully compatible with OpenTelemetry, so you can use OpenLLMetry to trace your applications on Laminar. Laminar’s OpenTelemetry backend supports both gRPC and HTTP trace exporters. The recommended setup is to use gRPC, as it’s more efficient. You will need to create a gRPC exporter and pass it to the Traceloop SDK.
1

Install dependencies

2

Set up environment variables

To get your API key, either sign up on Laminar and get it from the project settings, or spin up Laminar locally.
3

Initialize the OpenTelemetry gRPC exporter

4

Initialize the Traceloop SDK

5

Run your application

6

Example trace in Laminar

Example trace in Laminar. (Direct link)

(Alternative) HTTP quick setup

Laminar’s backend also supports accepting traces over HTTP, so for a minimal configuration change you can do:
and skip step 3 (exporter setup) above. For more information check out the Laminar docs.