Skip to content

experiment: AI SDK Telemetry Integration#1684

Draft
Abhijeet Prasad (AbhiPrasad) wants to merge 2 commits intomainfrom
abhi-telemetry-integration-ai-sdk
Draft

experiment: AI SDK Telemetry Integration#1684
Abhijeet Prasad (AbhiPrasad) wants to merge 2 commits intomainfrom
abhi-telemetry-integration-ai-sdk

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Read through docs/ai-sdk-telemetry-integration-migration.md for all the details.

/**
* Called when a tool execution begins.
*/
onToolCallStart = (event: any): void => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

oof this kind of like event-driven pattern is super painful with otel which has the callback/context/scope based pattern. In reality, we would also need to wrap the actual tool call in the right context.

Maybe we can give the feedback that it would maybe be cool to be able to return something like an AsyncLocalStorage from this function that the ai SDK will wrap the tool execution with?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants