Skip to content

Commit e7f07f6

Browse files
committed
move error.type to base genai class
1 parent cdec2bc commit e7f07f6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • util/opentelemetry-util-genai/src/opentelemetry/util/genai

util/opentelemetry-util-genai/src/opentelemetry/util/genai/types.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ class GenAIInvocation:
259259
context_token: ContextToken | None = None
260260
span: Span | None = None
261261
attributes: dict[str, Any] = field(default_factory=_new_str_any_dict)
262+
error_type: str | None = None
262263

263264

264265
@dataclass
@@ -371,8 +372,6 @@ class ToolCall(GenAIInvocation):
371372
tool_description: str | None = None
372373
# gen_ai.tool.call.result - Result returned by the tool (Opt-In, may contain sensitive data)
373374
tool_result: Any = None
374-
# error.type - Error type if the tool call failed
375-
error_type: str | None = None
376375

377376
# Timing field (not inherited from GenAIInvocation, matches LLMInvocation pattern)
378377
monotonic_start_s: float | None = None

0 commit comments

Comments
 (0)