File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/core/src/tracing/langgraph Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1- import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '../../semanticAttributes' ;
1+ import { SEMANTIC_ATTRIBUTE_SENTRY_OP , SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '../../semanticAttributes' ;
22import type { Span } from '../../types-hoist/span' ;
33import {
44 GEN_AI_AGENT_NAME_ATTRIBUTE ,
@@ -37,6 +37,7 @@ export function instrumentStateGraphCompile(
3737 name : 'create_agent' ,
3838 attributes : {
3939 [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : LANGGRAPH_ORIGIN ,
40+ [ SEMANTIC_ATTRIBUTE_SENTRY_OP ] : 'gen_ai.create_agent' ,
4041 [ GEN_AI_OPERATION_NAME_ATTRIBUTE ] : 'create_agent' ,
4142 } ,
4243 } ,
@@ -87,6 +88,7 @@ function instrumentCompiledGraphInvoke(
8788 name : 'invoke_agent' ,
8889 attributes : {
8990 [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : LANGGRAPH_ORIGIN ,
91+ [ SEMANTIC_ATTRIBUTE_SENTRY_OP ] : 'gen_ai.invoke_agent' ,
9092 [ GEN_AI_OPERATION_NAME_ATTRIBUTE ] : 'invoke_agent' ,
9193 } ,
9294 } ,
You can’t perform that action at this time.
0 commit comments