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 preview event #205

Merged
merged 4 commits into from
Jun 14, 2024
Merged

Sentry preview event #205

merged 4 commits into from
Jun 14, 2024

Conversation

butschster
Copy link
Member

@butschster butschster commented Jun 13, 2024

Fix problem with receiving events from JS application and covers with test

image
image

I tested with the following JS

import * as Sentry from "@sentry/vue";

import App from './App.vue'
import router from './router'

const app = createApp(App)

Sentry.init({
    app,
    dsn: "http:https://[email protected]/1",
    integrations: [
        Sentry.browserTracingIntegration({router}),
        Sentry.replayIntegration(),
    ],

    // Set tracesSampleRate to 1.0 to capture 100%
    // of transactions for tracing.
    // We recommend adjusting this value in production
    tracesSampleRate: 1.0,

    // Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
    tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],

    // Capture Replay for 10% of all sessions,
    // plus for 100% of sessions with an error
    replaysSessionSampleRate: 0.1,
    replaysOnErrorSampleRate: 1.0,
});

fix #204

@butschster butschster added bug Something isn't working module [Sentry] labels Jun 13, 2024
@butschster butschster added this to the 1.0 milestone Jun 13, 2024
@butschster butschster requested a review from roxblnfk June 13, 2024 20:07
@butschster butschster self-assigned this Jun 13, 2024
@butschster butschster merged commit b353b8c into master Jun 14, 2024
6 checks passed
@butschster butschster deleted the hotfix/sentry-preview-event branch June 14, 2024 08:56
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
Status: Done
Development

Successfully merging this pull request may close these issues.

JsonException: Syntax error
1 participant