Skip to content

Commit 534505c

Browse files
authored
feat: make traceContext accessible (#1696)
* feat: make traceContext accessible * chore: remove traceContext export in v1
1 parent 849f01c commit 534505c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/common/trace.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { AsyncLocalStorage } from "async_hooks";
22

3-
/* @internal */
43
export const traceContext = new AsyncLocalStorage<TraceContext>();
54

65
export interface TraceContext {

src/v2/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export {
7070

7171
export { CloudFunction, CloudEvent, ParamsOf, onInit } from "./core";
7272
export { Change } from "../common/change";
73+
export { traceContext } from "../common/trace";
7374
// NOTE: Equivalent to `export * as params from "../params"` but api-extractor doesn't support that syntax.
7475
import * as params from "../params";
7576
export { params };

0 commit comments

Comments
 (0)