Skip to content

LRU Memoizer | Sentry for Next.js

Source URL: https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/lrumemoizer

This integration only works in the Node.js and Bun runtimes. Requires SDK version 8.33.0 or higher.

Import name: Sentry.lruMemoizerIntegration

This integration is enabled by default when performance monitoring is enabled. If you’d like to modify your default integrations, read this.

The lruMemoizerIntegration adds instrumentation for the lru-memoizer library to capture spans using @opentelemetry/instrumentation-lru-memoizer.

Sentry.init({
integrations: [Sentry.lruMemoizerIntegration()],
});
  • lru-memoizer: >=1.3.0 <3