Function: buildObservability()
buildObservability(
options?):Promise<Observability|undefined>
Build a Mastra Observability whose spans ride AppKit’s global
OTel pipeline via @mastra/otel-bridge.
Returns undefined when tracing is off: either the caller passed
enabled: false, or auto mode finds no OTLP endpoint (the default).
Skipping the bridge in that case avoids [OtelBridge] No OTEL span found log spam from Mastra spans that have no parent on the noop
tracer.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<Observability | undefined>