Skip to content

Commit 8af5039

Browse files
committed
add back external span check
1 parent 18d4ace commit 8af5039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/versioned/openai/chat-completions.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ test('should create chat completion message and summary for every message sent',
137137

138138
if (semver.gte(pkgVersion, '4.12.2')) {
139139
test('should create span on successful chat completion stream create', (t, end) => {
140-
const { client, agent } = t.nr
140+
const { client, agent, host, port } = t.nr
141141
helper.runInTransaction(agent, async (tx) => {
142142
const content = 'Streamed response'
143143
const stream = await client.chat.completions.create({
@@ -159,7 +159,7 @@ if (semver.gte(pkgVersion, '4.12.2')) {
159159
assertSegments(
160160
tx.trace,
161161
tx.trace.root,
162-
[OPENAI.COMPLETION],
162+
[OPENAI.COMPLETION, `External/${host}:${port}/chat/completions`],
163163
{ exact: false }
164164
)
165165

0 commit comments

Comments
 (0)