-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
431 additions
and
151 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../preprod/templates/sentry.sealed-secret.yaml |
15 changes: 15 additions & 0 deletions
15
.kontinuous/env/preprod/templates/sentry.sealed-secret.yaml
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,15 @@ | ||
apiVersion: bitnami.com/v1alpha1 | ||
kind: SealedSecret | ||
metadata: | ||
annotations: | ||
sealedsecrets.bitnami.com/cluster-wide: 'true' | ||
name: sentry | ||
spec: | ||
encryptedData: | ||
SENTRY_AUTH_TOKEN: AgAEd5LQ7feLkFrw84LDXdC8QhLER0ZEOiNG9bPrYhqtWs7IZWAZJZU9pYn/sji/HvIk0p1DiyRjkVgYu9uoGE5hB1aeI2xXLAuSfIPYNMCLquQKl3HZRLG/X6dPCaNXsCEysGMbnG4jHvO7+Y0gQEUq+us7YdKLhS2eOLokYNMRLLmYoWlzQb+a6Xcck4HnF5btIB8ZXw8bQNkHL1ndFfa1Sm8X2w/fafhKziVKEZDA59W2Dar9Re4kjbsQ0pz4JElxSnyPLL/hmh8JL3flQa4hzyBMUrK9asnSen2eKOlCHLQVC7RYtUVgDZOeExialr02m515vMnsvjeYdhnJF5teFGi34l7Ejb3FaNiniz2ChxlAirHthqjyNeB2MaLhfqP5gFq4c10zcQGtq7vqTzF6QXWLTh0ZxDOc74yX/7DxvtO30ahzQ13Hy2Ne2UpvJYHrjPBd0+bVQooLgYopOkO3gwZkL6TwC2OF3xNkTKrHw5XbC7lVpps5i7D9Bu/q9Uy3Y0HfvCnYH/IQOIw92M15ceX3joaosbOdPM/eLhDOX629fQFK3Y/t3iaF8kUtiu3R11YPoma6Qa8/HHlxBDXa+BcQTweeINKhMCKngeUnn0hVQ+7ifMcZzdO91sHeIaa89EMokE7cd0ytKjbM9vrOUjxgg5Vsh8Vrc5qTR5hgQaPssroT+/p3oH6oFPvtOvVgucuaZhk/xIIX98BDVqKfpoxzGxpohKY2dUEQj33HMoU7MM0oWlcx5Cp0p65V+T+gC5+xQdvxYAueQNv8yP/65dVpMVi5gUpkKq3wtCl/7Hcwn9SY7iPZ3sPt/hsUbXJjQnAYMrc2Uc5q9GQuInBlH5totN1Cv3O4Dwm7KG/0PRlS1HSz5JQzM8/6TdOGyzdLEgiae0HO3hhfOZ7dtBOunP9ab0xrtAtSs1CJuzsL17ZGdZipEHn/2KFwxiccPogrxm/6KB996Q3moP1pR9y0HTpOyzNUU9yS9PluyXckyPDFm3KWIoOoTXh50p/27cEddOvxmS8G | ||
template: | ||
metadata: | ||
annotations: | ||
sealedsecrets.bitnami.com/cluster-wide: 'true' | ||
name: sentry | ||
type: Opaque |
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,16 @@ | ||
apiVersion: bitnami.com/v1alpha1 | ||
kind: SealedSecret | ||
metadata: | ||
annotations: | ||
sealedsecrets.bitnami.com/namespace-wide: 'true' | ||
name: sentry | ||
namespace: egapro | ||
spec: | ||
encryptedData: | ||
SENTRY_AUTH_TOKEN: AgADQ4ukYI/OCa5aKbWvm3vvDVTS3nSh40dPsV2LbnX6jgeRJ7dhsFw3U3d5AunMPn2n7o4oN/OQoP88GxyVleJgO8Gf59IW+aIJve6CoiqXtf7UNMyshFlNr4N4I74GNANKPk1vUgMUSxL35wMQHLsaqQOsehGo/a4Lz+pVRB3fPtlaSMDdtFUF0SmrNpjRqU/WKt9GU+xK3O76xA7pdCV6NNAIv+2JP2fjby1eH3nERBSwb2oDHS2nCKBuwz6qmeqn2THPBtsi7zy+Uvj7AUAuuq9quoqeW2PJm8Yl96/mx7n2FQdSFgdWACoZxFpC0TZMfg454HgZAbRXrkFY6IcztgSyl6FsU2mihDLipiQMonKMRzDlMqu3EPKn41alppL69xhVYjkEV/cScn/9N0eViva8jUwFEMrs3q1X0cBtCCuNoEMDYF8a3Q3wcB86a6Rc1NIJYXANkrPz5W9AG+8j+GpiVZnskP+AU9dlvbxswKbBK073C2McJpyp4Wo/YvjEOlBNVPrfctYPAuHn04UJn31f/HGAdosOzktnQ8aWsg/34CA2cY/L/mnCQue/hBqo5xzdrnp1NBOhG717mAHaQDeeYelwOF9c+K79mY5dED/hPF144GjWx1QRsZI5kbSAD+baNxhZx9iFte+SFye6J0VIb8L9B5oIqGXj3LK+m/HbSmztkLlbKjxa/Q5HewqYp+fPFauwOAsusBBX5EYERYk9qBJUJYxm7UJlI/JtDTQGptLSdPYX8ZpDAIi6X1Vk3dlc+wdod/b4GDawZqjJ+ooX+Q04W+E+A6SJrLmvZv8Y1Y3nAw4JB04fl6Kee9teCwDYf/9mPqESGShELMogj9HSS7xkptgWNg7BUVjMkQkMTOmJOjTH3yYE+1RxHOjzUKUes2YEUQIHyqmEXiO9tDuW27cuhfXolPxbTS8/ThjMNwNPOR/7DB/yT9LNSsNd1M5NYKbAYorEJiOlF1qQCqGpBI+eQDG6iM957SvSB5kRDWj2WNmQrg4gKJl52EqKEDQCEn3L | ||
template: | ||
metadata: | ||
annotations: | ||
sealedsecrets.bitnami.com/namespace-wide: 'true' | ||
name: sentry | ||
type: Opaque |
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
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 |
---|---|---|
|
@@ -3,27 +3,57 @@ | |
// https://docs.sentry.io/platforms/javascript/guides/nextjs/ | ||
|
||
import * as Sentry from "@sentry/nextjs"; | ||
import { Replay } from "@sentry/replay"; | ||
|
||
const ENVIRONMENT = process.env.EGAPRO_ENV || "development"; | ||
const IS_PRODUCTION = ENVIRONMENT === "production"; | ||
|
||
Sentry.init({ | ||
dsn: "https://[email protected]/99", | ||
environment: process.env.EGAPRO_ENV || "dev", | ||
// Adjust this value in production, or use tracesSampler for greater control | ||
tracesSampleRate: 0.1, | ||
|
||
// Setting this option to true will print useful information to the console while you're setting up Sentry. | ||
debug: false, | ||
environment: ENVIRONMENT, | ||
|
||
// Optimal sample rates based on environment | ||
tracesSampleRate: IS_PRODUCTION ? 0.1 : 1.0, | ||
replaysOnErrorSampleRate: 1.0, | ||
replaysSessionSampleRate: IS_PRODUCTION ? 0.1 : 0.5, | ||
|
||
debug: !IS_PRODUCTION, | ||
|
||
// Enable performance monitoring through traces | ||
enableTracing: true, | ||
|
||
// Track releases for better error monitoring | ||
release: process.env.NEXT_PUBLIC_GITHUB_SHA || "development", | ||
|
||
beforeSend(event) { | ||
// Filter out non-error events in production | ||
if (IS_PRODUCTION && !event.exception) return null; | ||
|
||
// Filter out known unnecessary errors | ||
const ignoreErrors = [ | ||
"ResizeObserver loop limit exceeded", | ||
"Network request failed", | ||
/^Loading chunk .* failed/, | ||
/^Loading CSS chunk .* failed/, | ||
]; | ||
|
||
if ( | ||
event.exception && | ||
ignoreErrors.some(pattern => { | ||
if (typeof pattern === "string") { | ||
return event.exception?.values?.[0]?.value?.includes(pattern); | ||
} | ||
return pattern.test(event.exception?.values?.[0]?.value || ""); | ||
}) | ||
) { | ||
return null; | ||
} | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
return event; | ||
}, | ||
|
||
// You can remove this option if you're not planning to use the Sentry Session Replay feature: | ||
integrations: [ | ||
// eslint-disable-next-line import/namespace | ||
new Sentry.Replay({ | ||
// Additional Replay configuration goes in here, for example: | ||
new Replay({ | ||
maskAllText: true, | ||
blockAllMedia: true, | ||
}), | ||
|
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 |
---|---|---|
|
@@ -5,12 +5,49 @@ | |
|
||
import * as Sentry from "@sentry/nextjs"; | ||
|
||
const ENVIRONMENT = process.env.EGAPRO_ENV || "dev"; | ||
const IS_PRODUCTION = ENVIRONMENT === "production"; | ||
|
||
Sentry.init({ | ||
dsn: "https://[email protected]/99", | ||
environment: process.env.EGAPRO_ENV || "dev", | ||
// Adjust this value in production, or use tracesSampler for greater control | ||
tracesSampleRate: 0.1, | ||
environment: ENVIRONMENT, | ||
|
||
// Optimal sample rates based on environment | ||
tracesSampleRate: IS_PRODUCTION ? 0.1 : 1.0, | ||
|
||
// Setting this option to true will print useful information to the console while you're setting up Sentry. | ||
debug: false, | ||
|
||
// Enable performance monitoring through traces | ||
enableTracing: true, | ||
|
||
// Track releases for better error monitoring | ||
release: process.env.NEXT_PUBLIC_GITHUB_SHA || ENVIRONMENT, | ||
|
||
beforeSend(event) { | ||
// Filter out non-error events in production | ||
if (IS_PRODUCTION && !event.exception) return null; | ||
|
||
// Filter out known unnecessary errors | ||
const ignoreErrors = [ | ||
"ResizeObserver loop limit exceeded", | ||
"Network request failed", | ||
/^Loading chunk .* failed/, | ||
/^Loading CSS chunk .* failed/, | ||
]; | ||
|
||
if ( | ||
event.exception && | ||
ignoreErrors.some(pattern => { | ||
if (typeof pattern === "string") { | ||
return event.exception?.values?.[0]?.value?.includes(pattern); | ||
} | ||
return pattern.test(event.exception?.values?.[0]?.value || ""); | ||
}) | ||
) { | ||
return null; | ||
} | ||
|
||
return event; | ||
}, | ||
}); |
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 |
---|---|---|
|
@@ -4,13 +4,53 @@ | |
|
||
import * as Sentry from "@sentry/nextjs"; | ||
|
||
const ENVIRONMENT = process.env.EGAPRO_ENV || "dev"; | ||
const IS_PRODUCTION = ENVIRONMENT === "production"; | ||
|
||
Sentry.init({ | ||
dsn: "https://[email protected]/99", | ||
environment: process.env.EGAPRO_ENV || "dev", | ||
environment: ENVIRONMENT, | ||
|
||
// Adjust this value in production, or use tracesSampler for greater control | ||
tracesSampleRate: 0.1, | ||
// Optimal sample rates based on environment | ||
tracesSampleRate: IS_PRODUCTION ? 0.1 : 1.0, | ||
|
||
// Setting this option to true will print useful information to the console while you're setting up Sentry. | ||
debug: false, | ||
|
||
// Enable performance monitoring through traces | ||
enableTracing: true, | ||
|
||
// Track releases for better error monitoring | ||
release: process.env.NEXT_PUBLIC_GITHUB_SHA || ENVIRONMENT, | ||
|
||
beforeSend(event) { | ||
// Filter out non-error events in production | ||
if (IS_PRODUCTION && !event.exception) return null; | ||
|
||
// Filter out known unnecessary errors | ||
const ignoreErrors = [ | ||
"ResizeObserver loop limit exceeded", | ||
"Network request failed", | ||
/^Loading chunk .* failed/, | ||
/^Loading CSS chunk .* failed/, | ||
/^ECONNREFUSED/, | ||
/^ECONNRESET/, | ||
/^ETIMEDOUT/, | ||
"Database connection timeout", | ||
]; | ||
|
||
if ( | ||
event.exception && | ||
ignoreErrors.some(pattern => { | ||
if (typeof pattern === "string") { | ||
return event.exception?.values?.[0]?.value?.includes(pattern); | ||
} | ||
return pattern.test(event.exception?.values?.[0]?.value || ""); | ||
}) | ||
) { | ||
return null; | ||
} | ||
|
||
return event; | ||
}, | ||
}); |
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.