From ffa835b7484ba3d2d16443342d9bfca79315c15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Sumis=C5=82awski?= Date: Fri, 19 Jul 2024 09:49:25 +0200 Subject: [PATCH] Change interval to one that fits in the limit --- nodejs/packages/layer/src/wrapper.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nodejs/packages/layer/src/wrapper.ts b/nodejs/packages/layer/src/wrapper.ts index 4e74313da6..f95e808fc9 100644 --- a/nodejs/packages/layer/src/wrapper.ts +++ b/nodejs/packages/layer/src/wrapper.ts @@ -302,8 +302,7 @@ async function initializeProvider() { resource, readers: [new PeriodicExportingMetricReader({ exporter: metricExporter, - exportIntervalMillis: 315360000000, // 10 years - exportTimeoutMillis: 315360000001, + exportIntervalMillis: 2147483647, // 24 days should be enough to outlive a lambda instance, and we can't put more here })] } if (typeof configureMeter === 'function') {