Skip to content

Commit 7c2ccff

Browse files
committed
fix: resolve full path to customizer
1 parent 9867cef commit 7c2ccff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ 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(path.resolve(`${codepath}/${customizer}`)))
115+
.NodeSDKConfiguration;
115116
if (typeof otelCustomizer === 'object') {
116117
otelCustomizer = (v) => ({ ...v, ...(otelCustomizer as Partial<NodeSDKConfiguration>) });
117118
}

0 commit comments

Comments
 (0)