Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions sdk/guides/observability.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export LMNR_PROJECT_API_KEY="your-laminar-api-key"

That's it. Run your agent code normally and traces will be sent to Laminar automatically.

To reduce startup overhead, you can limit automatic instrumentation to the integrations your agent uses. Values are comma-separated [Laminar instrument names](https://laminar.sh/docs/sdk/python/instrumentation):

```bash icon="terminal" wrap
export LMNR_INSTRUMENTS=litellm,mcp
```

<Note>
For Laminar-specific walkthroughs, see the official docs for [OpenHands SDK tracing](https://laminar.sh/docs/tracing/integrations/openhands-sdk), [session replay for browser agents](https://laminar.sh/docs/tracing/browser-agent-observability), [viewing traces](https://laminar.sh/docs/platform/viewing-traces), and [signals](https://laminar.sh/docs/signals/introduction).
</Note>
Expand Down Expand Up @@ -153,6 +159,7 @@ The SDK checks for these environment variables (in order of precedence):
| `LMNR_BASE_URL` | Base URL for self-hosted Laminar | `http://localhost` |
| `LMNR_HTTP_PORT` | HTTP port for self-hosted Laminar | `8000` |
| `LMNR_GRPC_PORT` | gRPC port for self-hosted Laminar | `8001` |
| `LMNR_INSTRUMENTS` | Comma-separated Laminar integrations to initialize | `litellm,mcp` |
| `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` | Full OTLP traces endpoint URL | `https://api.honeycomb.io:443/v1/traces` |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | Base OTLP endpoint (traces path appended) | `http://localhost:4317` |
| `OTEL_ENDPOINT` | Short form endpoint | `http://localhost:4317` |
Expand Down