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

fix(sentry): lower events rate to reduce production logs #5374

Merged
merged 2 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions packages/code-du-travail-frontend/sentry.client.config.js
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je pense on peut enlever le Replay car ça ne fonctionne pas au passage

import { Replay } from "@sentry/browser";

Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from "@sentry/nextjs";
import { Replay } from "@sentry/browser";

Sentry.init({
dsn:
process.env.NEXT_PUBLIC_SENTRY_DSN || process.env.SENTRY_PUBLIC_DSN || "",
environment:
process.env.NEXT_PUBLIC_SENTRY_ENV || process.env.SENTRY_ENV || "dev",
tracesSampleRate: 1.0,
tracesSampleRate: 0.2,
release: process.env.NEXT_PUBLIC_SENTRY_RELEASE || process.env.SENTRY_RELEASE,

replaysSessionSampleRate: 0.01,
replaysOnErrorSampleRate: 1.0,
integrations: [new Replay()],
});
2 changes: 1 addition & 1 deletion packages/code-du-travail-frontend/sentry.edge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Sentry.init({
process.env.NEXT_PUBLIC_SENTRY_DSN || process.env.SENTRY_PUBLIC_DSN || "",
environment:
process.env.NEXT_PUBLIC_SENTRY_ENV || process.env.SENTRY_ENV || "dev",
tracesSampleRate: 1.0,
tracesSampleRate: 0.2,
release: process.env.NEXT_PUBLIC_SENTRY_RELEASE || process.env.SENTRY_RELEASE,
});
2 changes: 1 addition & 1 deletion packages/code-du-travail-frontend/sentry.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Sentry.init({
process.env.NEXT_PUBLIC_SENTRY_DSN || process.env.SENTRY_PUBLIC_DSN || "",
environment:
process.env.NEXT_PUBLIC_SENTRY_ENV || process.env.SENTRY_ENV || "dev",
tracesSampleRate: 1.0,
tracesSampleRate: 0.2,
release: process.env.NEXT_PUBLIC_SENTRY_RELEASE || process.env.SENTRY_RELEASE,
});
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
},
"974": {
"name": "LA REUNION",
"url": "https://reunion.deets.gouv.fr/Nous-contacter,8384"
"url": "https://reunion.deets.gouv.fr/Nous-contacter"
},
"976": {
"name": "MAYOTTE",
Expand Down
Loading