Skip to content

Commit f22b59f

Browse files
Update openai.py
Update the arguments in the start_span function. pecifically, changing the deprecated "description" to "name". This was causing a deprecation warning when running tests.
1 parent d894fc2 commit f22b59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _new_chat_completion_common(f, *args, **kwargs):
137137

138138
span = sentry_sdk.start_span(
139139
op=consts.OP.OPENAI_CHAT_COMPLETIONS_CREATE,
140-
description="Chat Completion",
140+
name="Chat Completion",
141141
origin=OpenAIIntegration.origin,
142142
)
143143
span.__enter__()

0 commit comments

Comments
 (0)