openllmetry-js icon indicating copy to clipboard operation
openllmetry-js copied to clipboard

API in SDK for reporting prompts and completions

Open nirga opened this issue 1 year ago • 0 comments

Right now, the only way to create spans of prompts and completions is to use one of the ready-made instrumentations.

We should have an easy to use API in the SDK to manually create a span with the appropriate attributes for cases where the current instrumentations are not enough. Similar to the APIs we currently have on Go and Ruby.

nirga avatar Feb 20 '24 14:02 nirga