Skip to content

Commit 183ca42

Browse files
committed
feat: make traceContext accessible
1 parent 4559866 commit 183ca42

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-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/v1/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ import * as testLab from "./providers/testLab";
3535

3636
import { setApp as setEmulatedAdminApp } from "../common/app";
3737

38+
export { traceContext } from "../common/trace";
39+
3840
export {
3941
analytics,
4042
auth,

src/v2/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export {
5858
firestore,
5959
};
6060

61+
export { traceContext } from "../common/trace";
62+
6163
export {
6264
setGlobalOptions,
6365
GlobalOptions,

0 commit comments

Comments
 (0)