Skip to content

Commit cd88163

Browse files
authored
Fix bug where wrapInit wasn't called on v2 callable functions. (#1634)
* Fix bug where wrapInit wasn't called on v2 callable functions. * Add changelog. * Fix formatting issue. * Fix formatting.
1 parent c5936c5 commit cd88163

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
- Fix bug where wrapInit wasn't called on v2 callable functions. (#1634)
12
- Add support for callable function to return streaming response (#1629)

src/v2/providers/https.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ export function onCall<T = any, Return = any | Promise<any>>(
392392
"gcfv2"
393393
);
394394

395-
func = wrapTraceContext(func);
395+
func = wrapTraceContext(withInit(func));
396396

397397
Object.defineProperty(func, "__trigger", {
398398
get: () => {

0 commit comments

Comments
 (0)