Skip to content

Commit

Permalink
fix(openai): Use name instead of description (#3807)
Browse files Browse the repository at this point in the history
Update the arguments in the start_span function. Specifically, changing the deprecated "description" to "name". This was causing a deprecation warning when running tests.
  • Loading branch information
sourceful-rob authored Nov 19, 2024
1 parent d894fc2 commit 01146bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()
Expand Down

0 comments on commit 01146bd

Please sign in to comment.