Skip to content

Sentry: mistake in example with JavaScript #36

Open
@CasaMare

Description

@CasaMare

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>
    

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions