Skip to content

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

Description

@CakeCrusher

(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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Moderate issues affecting some users, edge cases, potentially valuable featuredocumentationImprovements or additions to documentationready for workEnough information for someone to start working on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions