Custom Integrations
In addition to the integrations that come with the SDK and which can be found on Sentry.Integrations
,
you can also write custom integrations.
Custom integration must conform to the Integration interface.
Add a custom integration to your JavaScript using the following format
Copied
class MyAwesomeIntegrations {
static id = "MyAwesomeIntegration";
name = "MyAwesomeIntegration";
setupOnce() {
// Do something when the integration is initialized
}
}
Sentry.init({
// ...
integrations: [new MyAwesomeIntegration()],
});
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").
Suggest an edit to this page | Contribute to Docs | Report a problem
🎉 Thank you for your feedback! 🙌
- Package:
- npm:@sentry/vue
- Version:
- 7.70.0
- Repository:
- https://github.com/getsentry/sentry-javascript