ModuleMetadata
Import name: Sentry.Integrations.ModuleMetadata
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: [new Sentry.Integrations.ModuleMetadata()],
});
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
- Package:
- npm:@sentry/browser
- Version:
- 7.86.0
- Repository:
- https://github.com/getsentry/sentry-javascript