From 41fb74f68e2911cac686f57709f230f07120343e Mon Sep 17 00:00:00 2001 From: Andrew Haines Date: Wed, 9 Aug 2023 10:12:49 +0100 Subject: [PATCH] fix(instrumentation): allow different export types for files within a Node module Signed-off-by: Andrew Haines --- experimental/CHANGELOG.md | 1 + .../src/instrumentationNodeModuleDefinition.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 845a7e7ad69..728658a8dc2 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -18,6 +18,7 @@ All notable changes to experimental packages in this project will be documented * fix(instrumentation): use caret range on import-in-the-middle [#4380](https://github.com/open-telemetry/opentelemetry-js/pull/4380) @pichlermarc * fix(instrumentation): do not import 'path' in browser runtimes [#4378](https://github.com/open-telemetry/opentelemetry-js/pull/4378) @pichlermarc * Fixes a bug where bundling for web would fail due to `InstrumentationNodeModuleDefinition` importing `path` +* fix(instrumentation): allow different export types for files within a Node module [#4046](https://github.com/open-telemetry/opentelemetry-js/pull/4046) @haines ### :books: (Refine Doc) diff --git a/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleDefinition.ts b/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleDefinition.ts index e45a943a7fc..a8f0f20a204 100644 --- a/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleDefinition.ts +++ b/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleDefinition.ts @@ -22,7 +22,7 @@ import { export class InstrumentationNodeModuleDefinition implements InstrumentationModuleDefinition { - files: InstrumentationModuleFile[]; + files: InstrumentationModuleFile[]; constructor( public name: string, public supportedVersions: string[],