Skip to content

Commit 2744d66

Browse files
committed
feat: make traceContext accessible
1 parent 4559866 commit 2744d66

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-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: 3 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,
@@ -80,4 +82,5 @@ export { config } from "../v1/config";
8082

8183
// Required for v1 Emulator support.
8284
import { setApp as setEmulatedAdminApp } from "../common/app";
85+
import { traceContext } from "../common/trace";
8386
export const app = { setEmulatedAdminApp };

0 commit comments

Comments
 (0)