ModuleMetadata
Adds module metadata to stack frames.
This integration only works inside a browser environment.
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 "___SDK_PACKAGE___";
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [Sentry.moduleMetadataIntegration()],
});
import * as Sentry from "___SDK_PACKAGE___";
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [Sentry.moduleMetadataIntegration()],
});
<script>
// Configure sentryOnLoad before adding the Loader Script
window.sentryOnLoad = function () {
Sentry.init({
integrations: [Sentry.moduleMetadataIntegration()],
});
};
</script>
<script
src="https://js.sentry-cdn.com/___PUBLIC_KEY___.min.js"
crossorigin="anonymous"
></script>
<script
src="https://browser.sentry-cdn.com/10.53.1/bundle.tracing.min.js"
integrity="sha384-FGoRMImH95uAyc72ypTWedaYaOCYskenhS7DgLZp+OsGCx2zs4/Nez3XHPGd55IY"
crossorigin="anonymous"
></script>
<script>
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [Sentry.moduleMetadataIntegration()],
});
</script>
Was this helpful?
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").
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").