From 8250be10cc28ba312cd23302d7082e477333c51e Mon Sep 17 00:00:00 2001 From: vmarchaud Date: Sat, 1 Feb 2020 11:36:01 +0100 Subject: [PATCH] chore: fixes typo --- .../opentelemetry-node/src/instrumentation/PluginLoader.ts | 4 ++-- .../test/instrumentation/PluginLoader.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/opentelemetry-node/src/instrumentation/PluginLoader.ts b/packages/opentelemetry-node/src/instrumentation/PluginLoader.ts index 67ee21c555..5517134bc7 100644 --- a/packages/opentelemetry-node/src/instrumentation/PluginLoader.ts +++ b/packages/opentelemetry-node/src/instrumentation/PluginLoader.ts @@ -134,13 +134,13 @@ export class PluginLoader { const plugin: Plugin = require(modulePath).plugin; if (!utils.isSupportedVersion(version, plugin.supportedVersions)) { this.logger.error( - `PluginLoader#load: Plugin ${name} only support module ${plugin.moduleName} with the versions: ${plugin.supportedVersions}` + `PluginLoader#load: Plugin ${name} only supports module ${plugin.moduleName} with the versions: ${plugin.supportedVersions}` ); return exports; } if (plugin.moduleName !== name) { this.logger.error( - `PluginLoader#load: Entry ${name} use a plugin that instrument ${plugin.moduleName}` + `PluginLoader#load: Entry ${name} use a plugin that instruments ${plugin.moduleName}` ); return exports; } diff --git a/packages/opentelemetry-node/test/instrumentation/PluginLoader.test.ts b/packages/opentelemetry-node/test/instrumentation/PluginLoader.test.ts index fb05e8bcc6..5093d448f0 100644 --- a/packages/opentelemetry-node/test/instrumentation/PluginLoader.test.ts +++ b/packages/opentelemetry-node/test/instrumentation/PluginLoader.test.ts @@ -251,7 +251,7 @@ describe('PluginLoader', () => { pluginLoader.unload(); }); - it('should not load a plugin that patch a different module that the one configured', () => { + it('should not load a plugin that patches a different module that the one configured', () => { const pluginLoader = new PluginLoader(provider, logger); assert.strictEqual(pluginLoader['_plugins'].length, 0); pluginLoader.load(differentNamePlugins);