openllmetry-js
openllmetry-js copied to clipboard
API in SDK for reporting prompts and completions
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.