Skip to content

Commit 6784f10

Browse files
authored
fix use node: protocol for async_hooks import (#52)
* fix use node: protocol for async_hooks import
1 parent 6955b68 commit 6784f10

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/hot-clocks-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vercel/flags': patch
3+
---
4+
5+
fix use node: protocol for async_hooks import

packages/flags/src/lib/tracing.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import type {
44
TracerProvider,
55
AttributeValue,
66
} from '@opentelemetry/api';
7+
import { AsyncLocalStorage } from 'node:async_hooks';
8+
79
import { name as pkgName, version } from '../../package.json';
8-
import { AsyncLocalStorage } from 'async_hooks';
910

1011
// Use a symbol to avoid having global variable that is scoped to this file,
1112
// as it can lead to issues with cjs and mjs being used at the same time.

0 commit comments

Comments
 (0)