Skip to content

Support the GenAI semantics #7217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
patwlan opened this issue Mar 21, 2025 · 3 comments
Closed

Support the GenAI semantics #7217

patwlan opened this issue Mar 21, 2025 · 3 comments
Labels
blocked:spec blocked on open or unresolved spec Feature Request Suggest an idea for this project

Comments

@patwlan
Copy link

patwlan commented Mar 21, 2025

Is your feature request related to a problem? Please describe.
Hi,
we would like to support the Generative AI spans and event in our java/kotlin application.
For the most part this seems straight forward, but i believe there are certain parts that cannot be implemented with the current sdk.
For examplel the events require a body
https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-events/, that does not seem available.
(Correct me if i am wrong).

Describe the solution you'd like
Extend the java sdk to enable the implementation of the Generative AI spec.
https://opentelemetry.io/docs/specs/semconv/gen-ai/

Describe alternatives you've considered

Additional context

@patwlan patwlan added the Feature Request Suggest an idea for this project label Mar 21, 2025
@jkwatson
Copy link
Contributor

I think what you're asking here is to have a stable Events API. We'll make that happen when the specification stabilizes and we have clear direction on how to implement Events. At the moment, it's not stable. We're actively involved in the stabilization process, including providing prototypes of various options. Thanks for your patience!

@jkwatson jkwatson added the blocked:spec blocked on open or unresolved spec label Mar 21, 2025
@breedx-splk
Copy link
Contributor

The events api was deprecated, and will only exist in the java core repo as an addition to the existing logging apis. That is, there will be the ability to set the event name on the log record, and there will be the ability to set "complex attributes" (nested structures within log attributes) once #7123 lands.

Please keep in mind that the docs that discuss "body fields" are outdated. The content of events has been decided to be placed into attributes. I'll raise this with the logging sig.

@patwlan
Copy link
Author

patwlan commented Mar 24, 2025

Hi, thanks for the clarification!

@patwlan patwlan closed this as completed Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked:spec blocked on open or unresolved spec Feature Request Suggest an idea for this project
Projects
None yet
Development

No branches or pull requests

3 participants