File tree Expand file tree Collapse file tree
dev-packages/node-integration-tests/suites/tracing/langchain/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {
2020 SENTRY_OP ,
2121 SENTRY_ORIGIN ,
2222} from '@sentry/conventions/attributes' ;
23- import { GEN_AI_DECIDE } from '@sentry/conventions/op' ;
23+ import { GEN_AI_CHAT , GEN_AI_DECIDE } from '@sentry/conventions/op' ;
2424import { GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE } from '../../../../../../packages/server-utils/src/ai/core/gen-ai-attributes' ;
2525import { cleanupChildProcesses , createEsmAndCjsTests } from '../../../../utils/runner' ;
2626import { createEsmTests } from '../../../../utils/runner/createEsmAndCjsTests' ;
@@ -256,7 +256,7 @@ describe('LangChain integration (v1)', () => {
256256 }
257257 return names ;
258258 } ;
259- const chatSpans = spans . filter ( span => span . attributes [ SENTRY_OP ] ?. value === 'gen_ai.chat' ) ;
259+ const chatSpans = spans . filter ( span => span . attributes [ SENTRY_OP ] ?. value === GEN_AI_CHAT ) ;
260260
261261 expect ( chatSpans ) . toHaveLength ( 2 ) ;
262262 expect (
@@ -269,7 +269,7 @@ describe('LangChain integration (v1)', () => {
269269 const handlerRunSpans = spans . filter (
270270 span =>
271271 span . attributes [ SENTRY_ORIGIN ] ?. value === 'auto.ai.langchain' &&
272- span . attributes [ SENTRY_OP ] ?. value !== 'gen_ai.chat' ,
272+ span . attributes [ SENTRY_OP ] ?. value !== GEN_AI_CHAT ,
273273 ) ;
274274 expect ( handlerRunSpans . map ( span => span . name ) . sort ( ) ) . toEqual ( [
275275 'execute_tool lookup_weather' ,
You can’t perform that action at this time.
0 commit comments