ModuleMetadata

Adds module metadata to stack frames.

Import name: Sentry.moduleMetadataIntegration

Metadata can be injected by the Sentry bundler plugins using the _experiments.moduleMetadata config option. Once this integration is added, the metadata passed to the bundler plugin will be added to the stack frames of all events under the module_metadata property. This can be used to help tag or route events from different teams or sources.

Copied
import * as Sentry from "@sentry/browser";

Sentry.init({
  dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
  integrations: [Sentry.moduleMetadataIntegration()],
});
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").