diff --git a/src/v2/providers/firestore.ts b/src/v2/providers/firestore.ts index 619e089e3..3dc592312 100644 --- a/src/v2/providers/firestore.ts +++ b/src/v2/providers/firestore.ts @@ -473,7 +473,7 @@ export function onChangedOperation( const event = raw as RawFirestoreEvent; const params = makeParams(event.document, documentPattern) as unknown as ParamsOf; const firestoreEvent = makeChangedFirestoreEvent(event, params); - return handler(firestoreEvent); + return wrapTraceContext(handler)(firestoreEvent); }; func.run = handler;