File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
- Add features to task queue functions. (#1423 )
2
+ - Add traces to V2 Firestore trigger logs. (#1440 )
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import {
34
34
createSnapshotFromJson ,
35
35
createSnapshotFromProtobuf ,
36
36
} from "../../common/providers/firestore" ;
37
+ import { wrapTraceContext } from "../trace" ;
37
38
38
39
export { Change } ;
39
40
@@ -445,7 +446,7 @@ export function onOperation<Document extends string>(
445
446
const event = raw as RawFirestoreEvent ;
446
447
const params = makeParams ( event . document , documentPattern ) as unknown as ParamsOf < Document > ;
447
448
const firestoreEvent = makeFirestoreEvent ( eventType , event , params ) ;
448
- return handler ( firestoreEvent ) ;
449
+ return wrapTraceContext ( handler ) ( firestoreEvent ) ;
449
450
} ;
450
451
451
452
func . run = handler ;
You can’t perform that action at this time.
0 commit comments