[PR #4978] add experimental.open_telemetry config option to enable OTEL spans #11196

Closed
opened 2026-02-16 18:15:59 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4978

State: closed
Merged: Yes


Related Issues

What this does

  • AI SDK has an experimental_telemetry flag. When enabled, it will automatically emit OTEL spans. I've added an optional config that turns that on in all calls to AI SDK generation functions.
  • The user can then use any OTEL supporting framework for tracing. For example, in Langfuse it's pretty simple - the user can build a simple plugin to send the generated spans to Langfuse.

Happy to add / edit / expand if needed!

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4978 **State:** closed **Merged:** Yes --- ## Related Issues - https://github.com/sst/opencode/issues/219 - https://github.com/sst/opencode/issues/2666 ## What this does - [AI SDK](https://ai-sdk.dev/docs/ai-sdk-core/telemetry) has an `experimental_telemetry` flag. When enabled, it will automatically emit OTEL spans. I've added an optional config that turns that on in all calls to AI SDK generation functions. - The user can then use any OTEL supporting framework for tracing. For example, in [Langfuse](https://langfuse.com/integrations/frameworks/vercel-ai-sdk#3-initialize-langfuse-with-opentelemetry) it's pretty simple - the user can build a simple plugin to send the generated spans to Langfuse. ---------------- Happy to add / edit / expand if needed!
yindo added the pull-request label 2026-02-16 18:15:59 -05:00
yindo closed this issue 2026-02-16 18:15:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11196