From 01146bd3adeb220bcf6cdd7ca634d2d2bc83b18f Mon Sep 17 00:00:00 2001 From: sourceful-rob <84452928+sourceful-rob@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:27:13 +0000 Subject: [PATCH] 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. --- sentry_sdk/integrations/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry_sdk/integrations/openai.py b/sentry_sdk/integrations/openai.py index e6ac36f3cb..61d335b170 100644 --- a/sentry_sdk/integrations/openai.py +++ b/sentry_sdk/integrations/openai.py @@ -137,7 +137,7 @@ def _new_chat_completion_common(f, *args, **kwargs): span = sentry_sdk.start_span( op=consts.OP.OPENAI_CHAT_COMPLETIONS_CREATE, - description="Chat Completion", + name="Chat Completion", origin=OpenAIIntegration.origin, ) span.__enter__()