open-telemetry / semantic-conventions

Defines standards for generating consistent, accessible telemetry across a variety of domains
Apache License 2.0
266 stars 169 forks source link

LLM: define common/system-specific event structure #834

Closed lmolkova closed 3 weeks ago

lmolkova commented 7 months ago

Area(s)

llm

Is your change request related to a problem? Please describe.

See https://github.com/open-telemetry/semantic-conventions/pull/825#discussion_r1533040974

825 is going to introduce LLM events and (currently) requires to put prompts and completions as json string in OpenAI format. Some LLM vendors might not use json and instrumentation would be forced to use specific structure.

We should decide if:

This is closely coupled with https://github.com/open-telemetry/semantic-conventions/issues/829

Describe the solution you'd like

TBD

lmolkova commented 7 months ago

Based on the discussion in this thread: