Skip to content

Commit 9867cef

Browse files
committed
fix: force path interpretation of import
1 parent f0ee38b commit 9867cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export async function bootstrap<
111111
| undefined = undefined;
112112
if (customizer) {
113113
// Customize OTEL with a dynamic import based on the codePath (so put it in src, generally)
114-
otelCustomizer = (await import(`${codepath}/${customizer}`)).NodeSDKConfiguration;
114+
otelCustomizer = (await import(`./${codepath}/${customizer}`)).NodeSDKConfiguration;
115115
if (typeof otelCustomizer === 'object') {
116116
otelCustomizer = (v) => ({ ...v, ...(otelCustomizer as Partial<NodeSDKConfiguration>) });
117117
}

0 commit comments

Comments
 (0)