I’m rerunning the function‑calling evaluation demo in the provided Colab notebook here, but when the agent executor is invoked I’m getting a 401 error from OpenTelemetry (screenshot attached). I suspect it’s an authorization issue but my API key is already set. I'm wondering if there is anything I might have overlooked?
A 401 error from OpenTelemetry when using Phoenix usually means the Phoenix API key is missing or not being sent correctly, even if you believe it is set. You must ensure the PHOENIX_API_KEY environment variable is set and, if you are using manual OpenTelemetry setup, that the API key is attached as a header in your exporter configuration. See the relevant documentation and examples here and here.If you are using the phoenix.otel.register helper, setting PHOENIX_API_KEY as an environment variable is usually sufficient. For manual OpenTelemetry setup, you must explicitly add the API key to the headers. Would you like a code example for both approaches?Sources: - GitHub Issue: Manually Instrumented "Failed to export batch code: 401, reason: Invalid token"
💡 Hint: Mention RunLLM in the thread for followups.
Yeah, I'm using app.phoenix.arize.com
alright
still getting the same error
`it's on colab
yeah the output looks fine to me
I got it working now. I was using an api key from the arize app and not the phoenix app. I just assumed it worked across board. My bad! Thanks for helping 🙏
