Skip to content

Commit

Permalink
Change interval to one that fits in the limit
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalSumislawski committed Jul 19, 2024
1 parent ad6e0fd commit ffa835b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nodejs/packages/layer/src/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit ffa835b

Please sign in to comment.