diff --git a/packages/opentelemetry-node-tracer/package.json b/packages/opentelemetry-node-tracer/package.json index 00f799eb252..a7c07e86194 100644 --- a/packages/opentelemetry-node-tracer/package.json +++ b/packages/opentelemetry-node-tracer/package.json @@ -35,17 +35,6 @@ "LICENSE", "README.md" ], - "c8": { - "extension": [ - ".ts" - ], - "exclude": [ - "**/*.d.ts", - "build/**/**/*.js", - "src/index.ts" - ], - "all": true - }, "publishConfig": { "access": "public" }, diff --git a/packages/opentelemetry-node-tracer/test/instrumentation/node_modules/@opentelemetry/plugin-simple-module/simple-module.js b/packages/opentelemetry-node-tracer/test/instrumentation/node_modules/@opentelemetry/plugin-simple-module/simple-module.js index 25d13a0c24b..142b861d222 100644 --- a/packages/opentelemetry-node-tracer/test/instrumentation/node_modules/@opentelemetry/plugin-simple-module/simple-module.js +++ b/packages/opentelemetry-node-tracer/test/instrumentation/node_modules/@opentelemetry/plugin-simple-module/simple-module.js @@ -8,14 +8,14 @@ class SimpleModulePlugin extends core_1.BasePlugin { } patch() { - shimmer.wrap(this.moduleExports, 'name', orig => () => 'patched-' + orig.apply()); - shimmer.wrap(this.moduleExports, 'value', orig => () => orig.apply() + 1); - return this.moduleExports; + shimmer.wrap(this._moduleExports, 'name', orig => () => 'patched-' + orig.apply()); + shimmer.wrap(this._moduleExports, 'value', orig => () => orig.apply() + 1); + return this._moduleExports; } unpatch() { - shimmer.unwrap(this.moduleExports, 'name'); - shimmer.unwrap(this.moduleExports, 'value'); + shimmer.unwrap(this._moduleExports, 'name'); + shimmer.unwrap(this._moduleExports, 'value'); } } exports.SimpleModulePlugin = SimpleModulePlugin;