Skip to content

docs: add new documentation for telemetry setup#14014

Merged
aayush-kapoor merged 17 commits intomainfrom
aayush/new-docs-otel
Apr 2, 2026
Merged

docs: add new documentation for telemetry setup#14014
aayush-kapoor merged 17 commits intomainfrom
aayush/new-docs-otel

Conversation

@aayush-kapoor
Copy link
Copy Markdown
Collaborator

@aayush-kapoor aayush-kapoor commented Apr 1, 2026

Background

follow up work for #13989, we need to properly document how telemetry needs to be setup now. the change in the attached PR lead to breaking change where the users now need to manually add which integration they want to use for telemetry

Summary

docs changes + examples changed to use new instrumentation

Manual Verification

verified by running some of the examples before and after the change

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

@tigent tigent bot added ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. documentation Improvements or additions to documentation maintenance CI, internal documentation, automations, etc labels Apr 1, 2026

```ts
import { registerTelemetryIntegration } from 'ai';
import { OpenTelemetryIntegration } from '@ai-sdk/otel';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we already call it LegacyOpenTelemetryIntegration (separate PR)?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can wait most likely

@aayush-kapoor aayush-kapoor enabled auto-merge (squash) April 2, 2026 15:14
@aayush-kapoor aayush-kapoor merged commit 0fcf226 into main Apr 2, 2026
18 checks passed
@aayush-kapoor aayush-kapoor deleted the aayush/new-docs-otel branch April 2, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. documentation Improvements or additions to documentation maintenance CI, internal documentation, automations, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants