Skip to content

Create error traces on failures of both embedding and chat creation #1845

@bizob2828

Description

@bizob2828

Errors occurring during chat and embedding creation must be recorded. Along with the standard error properties, we will include additional attributes as custom attributes to the agent.errors.add call.

Attribute LlmError
http.statusCode set from response.statusTBD on how to get this
error.message set from response.error.message
error.code set from response.code
error.param set from response.param
completion_id id of chat completion creation, does not exist for embedding errors
embedding_id id of embedding. does not exist for chat completion errors.

Note: We should still be recording the relevant LlmEmbedding, LlmChatCompletionMessage, LlmChatCompletionSummary on error although they may lack the same amount of detail as a successful creation. The only addition is an error: true property to the events

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done: Issues recently completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions