You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sentry_sdk/integrations/pydantic_ai/__init__.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -123,8 +123,8 @@ class PydanticAIIntegration(Integration):
123
123
Hooks using the decorators provided by `pydantic_ai.capabilities` create and manage spans for model calls when these hooks are available (newer library versions).
124
124
The span is created in `on_request` and stored in the metadata of the `RunContext` object shared with `on_response` and `on_error`.
125
125
126
-
The metadata on the RunContext instance is initialized with an empty dictionary in `Agent.__init__()`. The dictionary is required for the metadata object
127
-
to be a shared reference between hooks.
126
+
The metadata on the RunContext instance is initialized with an empty dictionary in `Agent.__init__()` if no metadata dictionary is provided by the user. The dictionary is
127
+
required for the metadata object to be a shared reference between hooks.
0 commit comments