-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14581 from artsy/DIA-835-force-setup-sentry-perfo…
…rmance-dashboard feat(dia-835): setup sentry performance dashboard
- Loading branch information
Showing
10 changed files
with
684 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import * as Sentry from "@sentry/browser" | ||
import { Integrations } from "@sentry/tracing" | ||
import { Dedupe } from "@sentry/integrations" | ||
import { | ||
init, | ||
browserTracingIntegration, | ||
dedupeIntegration, | ||
} from "@sentry/browser" | ||
import { | ||
ALLOWED_URLS, | ||
DENIED_URLS, | ||
IGNORED_ERRORS, | ||
} from "./analytics/sentryFilters" | ||
|
||
export function setupSentryClient(sd) { | ||
Sentry.init({ | ||
export function setupSentryClient(sentryPublicDSN: string) { | ||
init({ | ||
allowUrls: ALLOWED_URLS, | ||
denyUrls: DENIED_URLS, | ||
dsn: sd.SENTRY_PUBLIC_DSN, | ||
dsn: sentryPublicDSN, | ||
ignoreErrors: IGNORED_ERRORS, | ||
integrations: [new Integrations.BrowserTracing(), new Dedupe()], | ||
integrations: [browserTracingIntegration(), dedupeIntegration()], | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as Sentry from "@sentry/node" | ||
import { nodeProfilingIntegration } from "@sentry/profiling-node" | ||
import { IGNORED_ERRORS } from "Server/analytics/sentryFilters" | ||
import { SENTRY_PRIVATE_DSN, SENTRY_TRACING_ENABLED } from "Server/config" | ||
|
||
const TRACING_CONFIG: Sentry.NodeOptions = { | ||
integrations: [nodeProfilingIntegration()], | ||
profilesSampleRate: 1.0, // Capture 100% of the transactions | ||
tracesSampleRate: 1.0, // Capture 100% of the transactions | ||
} | ||
|
||
if (SENTRY_PRIVATE_DSN) { | ||
Sentry.init({ | ||
dsn: SENTRY_PRIVATE_DSN, | ||
ignoreErrors: IGNORED_ERRORS, | ||
...(SENTRY_TRACING_ENABLED ? TRACING_CONFIG : {}), | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.