Skip to content

Commit 2f62e58

Browse files
committed
update completions op
1 parent 835bf8c commit 2f62e58

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

sentry_sdk/consts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,6 @@ class OP:
837837
LANGCHAIN_RUN = "ai.run.langchain"
838838
LANGCHAIN_TOOL = "ai.tool.langchain"
839839
LANGCHAIN_AGENT = "ai.agent.langchain"
840-
LANGCHAIN_CHAT_COMPLETIONS_CREATE = "ai.chat_completions.create.langchain"
841840
QUEUE_PROCESS = "queue.process"
842841
QUEUE_PUBLISH = "queue.publish"
843842
QUEUE_SUBMIT_ARQ = "queue.submit.arq"

sentry_sdk/integrations/langchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def on_chat_model_start(self, serialized, messages, *, run_id, **kwargs):
208208
watched_span = self._create_span(
209209
run_id,
210210
kwargs.get("parent_run_id"),
211-
op=OP.LANGCHAIN_CHAT_COMPLETIONS_CREATE,
211+
op=OP.GEN_AI_CHAT,
212212
name=kwargs.get("name") or "Langchain Chat Model",
213213
origin=LangchainIntegration.origin,
214214
)

0 commit comments

Comments
 (0)