Skip to content

Commit 833cd8d

Browse files
committed
missing op
1 parent 5594f84 commit 833cd8d

File tree

1 file changed

+3
-1
lines changed
  • packages/core/src/tracing/langgraph

1 file changed

+3
-1
lines changed

packages/core/src/tracing/langgraph/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '../../semanticAttributes';
1+
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '../../semanticAttributes';
22
import type { Span } from '../../types-hoist/span';
33
import {
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
},

0 commit comments

Comments
 (0)