Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry: mistake in example with JavaScript #36

Open
CasaMare opened this issue Jun 4, 2024 · 0 comments
Open

Sentry: mistake in example with JavaScript #36

CasaMare opened this issue Jun 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working module [Sentry]

Comments

@CasaMare
Copy link

CasaMare commented Jun 4, 2024

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: "my-project-name@2.3.12",
        integrations: [
           Sentry.replayIntegration()
        ],
        tracesSampleRate: 1.0,
        replaysSessionSampleRate: 0.1,
        replaysOnErrorSampleRate: 1.0,
    });
    </script>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module [Sentry]
Projects
None yet
Development

No branches or pull requests

2 participants