Skip to content

Commit 01146bd

Browse files
fix(openai): Use name instead of description (#3807)
Update the arguments in the start_span function. Specifically, changing the deprecated "description" to "name". This was causing a deprecation warning when running tests.
1 parent d894fc2 commit 01146bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/openai.py

+1-1
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)