Skip to content

Improve instrumentation and gen_ai spec adherence#222

Open
anbuzin wants to merge 3 commits into
durable-telemetry-2from
improve-gen-ai-spec
Open

Improve instrumentation and gen_ai spec adherence#222
anbuzin wants to merge 3 commits into
durable-telemetry-2from
improve-gen-ai-spec

Conversation

@anbuzin

@anbuzin anbuzin commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

One thing I'm lukewarm about is adopting semconv finish reasons. The upside is that it's a preexisting convention, and the downside is that it's passthrough for unknown values, which is not very friendly for match case.

The alternative would be to use what the AI SDK uses, which is their own enum (it has a catch-all other, which is better for matching), and they keep both the framework value and the raw provider value.

@anbuzin
anbuzin requested a review from msullivan July 17, 2026 23:26
@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-python Ready Ready Preview, Comment Jul 20, 2026 7:59pm

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

Labels

feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant