Skip to content

Commit e79c36e

Browse files
feat(langchain): update integration to from ai.* to gen_ai.* span attributes (#4678)
- Update span attributes to new OTEL compatible schema Closes TET-992 --------- Co-authored-by: Anton Pirker <[email protected]>
1 parent 4640531 commit e79c36e

File tree

4 files changed

+543
-236
lines changed

4 files changed

+543
-236
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ ignore_missing_imports = true
126126
module = "langchain_core.*"
127127
ignore_missing_imports = true
128128

129+
[[tool.mypy.overrides]]
130+
module = "langchain.*"
131+
ignore_missing_imports = true
132+
129133
[[tool.mypy.overrides]]
130134
module = "executing.*"
131135
ignore_missing_imports = true

sentry_sdk/consts.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@ class OP:
795795
GEN_AI_EMBEDDINGS = "gen_ai.embeddings"
796796
GEN_AI_EXECUTE_TOOL = "gen_ai.execute_tool"
797797
GEN_AI_HANDOFF = "gen_ai.handoff"
798+
GEN_AI_PIPELINE = "gen_ai.pipeline"
798799
GEN_AI_INVOKE_AGENT = "gen_ai.invoke_agent"
799800
GEN_AI_RESPONSES = "gen_ai.responses"
800801
GRAPHQL_EXECUTE = "graphql.execute"
@@ -822,11 +823,6 @@ class OP:
822823
HUGGINGFACE_HUB_CHAT_COMPLETIONS_CREATE = (
823824
"ai.chat_completions.create.huggingface_hub"
824825
)
825-
LANGCHAIN_PIPELINE = "ai.pipeline.langchain"
826-
LANGCHAIN_RUN = "ai.run.langchain"
827-
LANGCHAIN_TOOL = "ai.tool.langchain"
828-
LANGCHAIN_AGENT = "ai.agent.langchain"
829-
LANGCHAIN_CHAT_COMPLETIONS_CREATE = "ai.chat_completions.create.langchain"
830826
QUEUE_PROCESS = "queue.process"
831827
QUEUE_PUBLISH = "queue.publish"
832828
QUEUE_SUBMIT_ARQ = "queue.submit.arq"

0 commit comments

Comments
 (0)