Skip to content

Rework the adapter-making decorator - #233

Merged
anbuzin merged 4 commits into
mainfrom
change-wrap-span
Jul 27, 2026
Merged

Rework the adapter-making decorator#233
anbuzin merged 4 commits into
mainfrom
change-wrap-span

Conversation

@anbuzin

@anbuzin anbuzin commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Renames @wrap_span -> @adapter.

@adapter can now decorate a function (as before) or a class. A class needs to have a __call__ on it, and the decorator will add on_span_* callbacks as a mixin.

Also deletes the otel.configure() helper function.

@anbuzin
anbuzin requested review from 1st1 and msullivan July 27, 2026 21:24
@vercel

vercel Bot commented Jul 27, 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 27, 2026 10:08pm

@anbuzin
anbuzin changed the base branch from main to span-remove-kwargs July 27, 2026 21:25
@anbuzin anbuzin added the feature New functionality label Jul 27, 2026
Comment thread src/ai/experimental_telemetry/span.py Outdated
Comment thread src/ai/experimental_telemetry/span.py Outdated
Base automatically changed from span-remove-kwargs to main July 27, 2026 22:03
@anbuzin
anbuzin force-pushed the change-wrap-span branch from 6c3fcf5 to 797a21a Compare July 27, 2026 22:08
@anbuzin
anbuzin merged commit 1ea0a40 into main Jul 27, 2026
8 checks passed
@anbuzin
anbuzin deleted the change-wrap-span branch July 27, 2026 22:10
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.

2 participants