Failed to export metrics batch code: 401, reason: ...
# ask-ai
a
Failed to export metrics batch code: 401, reason: \b\u0010\u0012+project data recording is disabled by owner\u001a+\n)type.googleapis.com/google.rpc.BadRequest
✅ 1
t
Thanks for reaching out, Sebastián. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding about the 401 error saying "project data recording is disabled by owner" when exporting metrics. That error means Observability (project-level data recording) is turned off for the project, so exports/recording are blocked. Observability is disabled by default and must be enabled in the project dashboard under Data and privacy / Observability to allow traces, logs, audio, transcripts, and metrics to be recorded and exported. SDK/session-level recording can also be disabled in code (e.g.,
session.start(record=False)
or
record={ "audio": True, ... }
in newer Python SDKs). To help you fix this, please tell me: • Which project ID (or project name) are you working with? • Are you an Admin on that project? (Only Admins can enable Observability by default.) • Are you using session-level recording in code (any
record
flags) or an older SDK version? With those details I’ll guide you step-by-step to enable Observability or check session settings. Sources: Why is my Agent insights data missing? | LiveKit | LiveKit Agent Observability | Debug and optimize voice agents | LiveKit | Streamline troubleshooting with Agent Observability | LiveKit | Streamline troubleshooting with Agent Observability | LiveKit | Where to find your Agent Logs | LiveKit, with interactive elements