Skip to content

(discussion) How to best handle instrumenting for resources and prompts #766

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

Open
CakeCrusher opened this issue May 21, 2025 · 0 comments
Open

Comments

@CakeCrusher
Copy link

(Unfortunately there is no discussion page in this repo so im posting this here)

I am looking to add instrumentation to this package in https://github.com/Arize-ai/openinference to handle resources and prompts in a way so that OpenTelemetry spans are created correctly. The purpose is to enable tracing the resources resources and prompts produced by the server.

(I have already explored the package and have added context (state of the OpenTelemtry span) propagation for the client and server with the server receiving the context at the _handle_request.)

The question is where should the spans be created for the resources and prompt?

PS: Not 100% sure if _handle_request is the best function to handle the propagation too so advice on that would be great too!

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

No branches or pull requests

1 participant