From 61255e2eb40407f0d7698e191e022312ba658c31 Mon Sep 17 00:00:00 2001 From: Amir Blum Date: Wed, 15 Feb 2023 13:57:09 +0200 Subject: [PATCH] chore: don't patch unsupported hapi version (#1382) Co-authored-by: Haddas Bronfman <85441461+haddasbronfman@users.noreply.github.com> --- .../opentelemetry-instrumentation-hapi/src/instrumentation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/node/opentelemetry-instrumentation-hapi/src/instrumentation.ts b/plugins/node/opentelemetry-instrumentation-hapi/src/instrumentation.ts index c5297a37454..e671041b54a 100644 --- a/plugins/node/opentelemetry-instrumentation-hapi/src/instrumentation.ts +++ b/plugins/node/opentelemetry-instrumentation-hapi/src/instrumentation.ts @@ -57,7 +57,7 @@ export class HapiInstrumentation extends InstrumentationBase { protected init() { return new InstrumentationNodeModuleDefinition( HapiComponentName, - ['>=17.0.0'], + ['>=17 <21'], moduleExports => { if (!isWrapped(moduleExports.server)) { api.diag.debug('Patching Hapi.server');