Skip to content

Commit 4a1e23d

Browse files
committed
add wrapTraceContext
1 parent 5221143 commit 4a1e23d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/v2/providers/testLab.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import { ManifestEndpoint } from "../../runtime/manifest";
2424
import { CloudEvent, CloudFunction } from "../core";
2525
import { EventHandlerOptions, getGlobalOptions, optionsToEndpoint } from "../options";
26+
import { wrapTraceContext } from "../trace";
2627

2728
/** @internal */
2829
export const eventType = "google.firebase.testlab.testMatrix.v1.completed";
@@ -189,7 +190,7 @@ export function onTestMatrixCompleted(
189190
const specificOpts = optionsToEndpoint(optsOrHandler);
190191

191192
const func: any = (raw: CloudEvent<unknown>) => {
192-
return handler(raw as CloudEvent<TestMatrixCompletedData>);
193+
return wrapTraceContext(handler(raw as CloudEvent<TestMatrixCompletedData>));
193194
};
194195
func.run = handler;
195196

0 commit comments

Comments
 (0)