Skip to content

Commit

Permalink
feat: Add release tag to Sentry configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
adintegra committed May 9, 2023
1 parent ea88536 commit e231b68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

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

import { SENTRY_DSN } from "./domain/env";
import { SENTRY_DSN, BUILD_VERSION } from "./domain/env";

Sentry.init({
dsn: SENTRY_DSN,
release: "visualization-tool@" + BUILD_VERSION,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,

Expand Down
3 changes: 2 additions & 1 deletion app/sentry.edge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

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

import { SENTRY_DSN } from "./domain/env";
import { SENTRY_DSN, BUILD_VERSION } from "./domain/env";

Sentry.init({
dsn: SENTRY_DSN,
release: "visualization-tool@" + BUILD_VERSION,
tracesSampleRate: 1.0,
});
3 changes: 2 additions & 1 deletion app/sentry.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

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

import { SENTRY_DSN } from "./domain/env";
import { SENTRY_DSN, BUILD_VERSION } from "./domain/env";

Sentry.init({
dsn: SENTRY_DSN,
release: "visualization-tool@" + BUILD_VERSION,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
});

1 comment on commit e231b68

@vercel
Copy link

@vercel vercel bot commented on e231b68 May 9, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

visualization-tool – ./

visualization-tool-alpha.vercel.app
visualization-tool-git-main-ixt1.vercel.app
visualization-tool-ixt1.vercel.app

Please sign in to comment.