window.sentryOnLoad = function () { Sentry.init({ environment: "production", enabled: true, sampleRate: (function (url) { if (url.includes('/order/payment_service')) { return 1; } return 0.02; })(window.location.pathname), tracesSampleRate: 0.1, replaysSessionSampleRate: 0, replaysOnErrorSampleRate: 0, }); };