diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e248eadf..669a7dba6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,2 @@ +- Fix bug where wrapInit wasn't called on v2 callable functions. (#1634) - Add support for callable function to return streaming response (#1629) diff --git a/src/v2/providers/https.ts b/src/v2/providers/https.ts index b21c04ba1..0c5fd2ba0 100644 --- a/src/v2/providers/https.ts +++ b/src/v2/providers/https.ts @@ -392,7 +392,7 @@ export function onCall>( "gcfv2" ); - func = wrapTraceContext(func); + func = wrapTraceContext(withInit(func)); Object.defineProperty(func, "__trigger", { get: () => {