✨ feat(Sentry): Initialise Sentry pour le suivi des erreurs et performances.
Ajoute l'initialisation de Sentry avec tunnel, suivi des performances et replay.
```
29 lines
774 B
JavaScript
29 lines
774 B
JavaScript
import './app.scss'
|
|
import * as Turbo from "@hotwired/turbo"
|
|
|
|
import * as Turbo from "@hotwired/turbo";
|
|
|
|
// --- INITIALISATION SENTRY (En premier !) ---
|
|
Sentry.init({
|
|
dsn: "https://803814be6540031b1c37bf92ba9c0f79@sentry.esy-web.dev/24",
|
|
tunnel: "/sentry-tunnel",
|
|
sendDefaultPii: true,
|
|
integrations: [
|
|
Sentry.browserTracingIntegration(),
|
|
Sentry.replayIntegration()
|
|
],
|
|
tracesSampleRate: 1.0,
|
|
tracePropagationTargets: ["localhost", "esy-web.dev"], // Remplace par ton domaine réel
|
|
replaysSessionSampleRate: 0.1,
|
|
replaysOnErrorSampleRate: 1.0
|
|
});
|
|
|
|
// --- INITIALISATION DES COMPOSANTS APRÈS TURBO/CHARGEMENT ---
|
|
document.addEventListener('DOMContentLoaded', ()=>{
|
|
|
|
});
|
|
|
|
document.addEventListener('turbo:load', () => {
|
|
|
|
});
|