Skip to content

Add with_otel_attributes for custom observation attributes#21

Merged
clarissalimab merged 1 commit into
mainfrom
support-custom-attributes
May 8, 2026
Merged

Add with_otel_attributes for custom observation attributes#21
clarissalimab merged 1 commit into
mainfrom
support-custom-attributes

Conversation

@clarissalimab
Copy link
Copy Markdown
Contributor

Allows setting arbitrary OpenTelemetry attributes on chat spans or traces via with_otel_attributes. Values can be static or callables (Procs/ lambdas) that are evaluated after each completion for access to response data.

Allows setting arbitrary OpenTelemetry attributes on chat spans or
traces via `with_otel_attributes`. Values can be static or callables
(Procs/ lambdas) that are evaluated after each completion for access to
response data.
@clarissalimab clarissalimab force-pushed the support-custom-attributes branch from 6c9270c to 54a1694 Compare April 10, 2026 20:16
@clarissalimab clarissalimab marked this pull request as ready for review April 10, 2026 20:16
Copy link
Copy Markdown

@tessgriffin tessgriffin left a comment

Choose a reason for hiding this comment

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

Looks great 👍🏻

@clarissalimab clarissalimab merged commit caac9b7 into main May 8, 2026
4 checks passed
@clarissalimab clarissalimab deleted the support-custom-attributes branch May 8, 2026 15:42
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