Open
Description
This example of JS file is not accessible <script src="http://127.0.0.1:8000/sentry/1.js"></script>
1)first of all the correct path is http://127.0.0.1:8000/api/sentry/<project>.js
2)project can't has name which consist only numbers. Server will return an error if you will set project name as 1.js for example.
That's why will be better to change example in documentation or to fix server
3)will be better to add some example without using JS code from JavascriptAction.php
<script
src="https://browser.sentry-cdn.com/8.7.0/bundle.tracing.min.js"
integrity="sha384-El1U6uHs+kYnjjnAadrxqBd/larZn06moHy9Mw+YiMBDusaysu66hF0PRUTGC5hN"
crossorigin="anonymous"
></script>
<script>
Sentry.init({
dsn: "http://sentry@localhost:8000/1",
release: "[email protected]",
integrations: [
Sentry.replayIntegration()
],
tracesSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
</script>