Skip to content

Commit d7df478

Browse files
committed
fix test
1 parent 1b1d804 commit d7df478

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/traceloop-sdk/test/ai-sdk-agent-integration.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,20 +503,20 @@ describe("Test AI SDK Agent Integration with Recording", function () {
503503
assert.ok(innerAgentSpan, "Inner agent span should exist");
504504

505505
assert.strictEqual(
506-
outerAgentSpan.attributes[SpanAttributes.GEN_AI_AGENT_NAME],
506+
outerAgentSpan.attributes[ATTR_GEN_AI_AGENT_NAME],
507507
"outer_agent",
508508
"Outer agent span should have outer_agent name",
509509
);
510510

511511
assert.strictEqual(
512-
innerAgentSpan.attributes[SpanAttributes.GEN_AI_AGENT_NAME],
512+
innerAgentSpan.attributes[ATTR_GEN_AI_AGENT_NAME],
513513
"inner_agent",
514514
"Inner agent span should have inner_agent name, not inherit from outer_agent",
515515
);
516516

517517
if (toolSpan) {
518518
assert.strictEqual(
519-
toolSpan.attributes[SpanAttributes.GEN_AI_AGENT_NAME],
519+
toolSpan.attributes[ATTR_GEN_AI_AGENT_NAME],
520520
"outer_agent",
521521
"Tool span should inherit agent name from outer_agent",
522522
);
@@ -530,7 +530,7 @@ describe("Test AI SDK Agent Integration with Recording", function () {
530530

531531
for (const childSpan of innerAgentChildSpans) {
532532
assert.strictEqual(
533-
childSpan.attributes[SpanAttributes.GEN_AI_AGENT_NAME],
533+
childSpan.attributes[ATTR_GEN_AI_AGENT_NAME],
534534
"inner_agent",
535535
`Child span "${childSpan.name}" of inner agent should have inner_agent name`,
536536
);

0 commit comments

Comments
 (0)