Skip to content

Commit fb55422

Browse files
committed
amend
1 parent 7ebc8ee commit fb55422

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/unit/llm-events/google-genai/embedding.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@ test('should set error to true', (t, end) => {
9494
}
9595

9696
const api = helper.getAgentApi()
97-
helper.runInTransaction(agent, () => {
97+
helper.runInTransaction(agent, (tx) => {
9898
api.startSegment('fakeSegment', false, () => {
9999
const segment = api.shim.getActiveSegment()
100100
const embeddingEvent = new LlmEmbedding({
101101
agent,
102102
segment,
103+
transaction: tx,
103104
request: req,
104105
response: res,
105106
error: true
@@ -119,11 +120,12 @@ test('respects record_content', (t, end) => {
119120
agent.config.ai_monitoring.record_content.enabled = false
120121

121122
const api = helper.getAgentApi()
122-
helper.runInTransaction(agent, () => {
123+
helper.runInTransaction(agent, (tx) => {
123124
const segment = api.shim.getActiveSegment()
124125
const embeddingEvent = new LlmEmbedding({
125126
agent,
126127
segment,
128+
transaction: tx,
127129
request: req,
128130
response: res
129131
})

0 commit comments

Comments
 (0)