OtelExporter that targets any OTLP endpoint. Wire it into your Mastra instance, then pass userId / conversationId per call.
1. Install
Already have@mastra/observability and @mastra/otel-exporter? Skip.
No Observability set up yet?
2. Wire the OtelExporter pointing at Agnost
Already have Mastra Observability? Append Agnost to the existingexporters array: Mastra fans traces out to every exporter in the list:
3. Pass userId / conversationId per call
userId, conversationId, and threadId in tracingOptions.metadata are read by Agnost for user / session grouping.
