Skip to content

FunctionToString | Sentry for Next.js

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

Import name: Sentry.functionToStringIntegration

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

This integration allows the SDK to provide original functions and method names, even when those functions or methods are wrapped by our error or breadcrumb handlers.

Sentry.init({
integrations: [Sentry.functionToStringIntegration()],
});