GenAI span

A trace span for one model call, named after the operation and model, such as "chat claude-sonnet", carrying the GenAI convention attributes.

In more detail

Record the operation, provider and requested model on every call; add the response id, finish reasons and token usage on success, and an error type on failure. Exported spans give latency percentiles, cost per model and error rates, and feedback can be linked by response id.

Related terms

Taught in

References

Certification courses