lazy.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { dynamicRequire } from '@sentry/utils';
  2. const lazyLoadedNodePerformanceMonitoringIntegrations = [
  3. () => {
  4. const integration = dynamicRequire(module, './apollo')
  5. ;
  6. return new integration.Apollo();
  7. },
  8. () => {
  9. const integration = dynamicRequire(module, './apollo')
  10. ;
  11. return new integration.Apollo({ useNestjs: true });
  12. },
  13. () => {
  14. const integration = dynamicRequire(module, './graphql')
  15. ;
  16. return new integration.GraphQL();
  17. },
  18. () => {
  19. const integration = dynamicRequire(module, './mongo')
  20. ;
  21. return new integration.Mongo();
  22. },
  23. () => {
  24. const integration = dynamicRequire(module, './mongo')
  25. ;
  26. return new integration.Mongo({ mongoose: true });
  27. },
  28. () => {
  29. const integration = dynamicRequire(module, './mysql')
  30. ;
  31. return new integration.Mysql();
  32. },
  33. () => {
  34. const integration = dynamicRequire(module, './postgres')
  35. ;
  36. return new integration.Postgres();
  37. },
  38. ];
  39. export { lazyLoadedNodePerformanceMonitoringIntegrations };
  40. //# sourceMappingURL=lazy.js.map