Choose an instrumentation path
Use the Metrune SDK for agent-aware spans and automatic model instrumentation. Use OpenTelemetry when your service already emits traces or when you need language-neutral context propagation.
Set the environment key
Create a scoped API key in project settings and expose it to the runtime through your existing secret manager. Do not commit keys to source control.
METRUNE_API_KEY=mt_live_••••••••
METRUNE_ENVIRONMENT=production
Propagate run context
Keep the run ID across HTTP requests, queues, and background jobs. Metrune accepts W3C trace context, so existing instrumented services can join the same execution graph.
Verify the connection
Send a test run and confirm the runtime, release, and environment dimensions in Trace Explorer. Then configure sampling and redaction policies before increasing production volume.