-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLAT-13781: Adding sentry monitoring to cli (#1104)
- Loading branch information
Showing
4 changed files
with
76 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import * as Sentry from "@sentry/node"; | ||
|
||
class SentryMonitoring { | ||
constructor() { | ||
try { | ||
Sentry.init({ | ||
dsn: "https://[email protected]/4506825798647808", | ||
// Don't log the name of our users computers. Feels a bit much? | ||
serverName: "-" | ||
}); | ||
} catch { | ||
// Do nothing, but prevent any sentry errors from blocking commands from executing | ||
} | ||
} | ||
|
||
registerCommandName(commandName) { | ||
try { | ||
Sentry.setTag("command", commandName); | ||
} catch { | ||
// Do nothing, but prevent any sentry errors from blocking commands from executing | ||
} | ||
} | ||
} | ||
|
||
export const sentryMonitoring = new SentryMonitoring(); |
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 |
---|---|---|
|
@@ -1573,6 +1573,45 @@ | |
node-fetch "^2.6.7" | ||
tslib "^2.4.1" | ||
|
||
"@sentry-internal/[email protected]": | ||
version "7.103.0" | ||
resolved "https://registry.yarnpkg.com/@sentry-internal/tracing/-/tracing-7.103.0.tgz#b18ef65f610099ee2fc74f91f9ccfdb0353580c4" | ||
integrity sha512-sZ/Wao8HOvGaBs7WlOdflMpHGAFkOBWL6hBiirHaOy5d+IDm7n7et5U6zhvcfiyYBO4nY36gy1Tg5mw+aNO0Vw== | ||
dependencies: | ||
"@sentry/core" "7.103.0" | ||
"@sentry/types" "7.103.0" | ||
"@sentry/utils" "7.103.0" | ||
|
||
"@sentry/[email protected]": | ||
version "7.103.0" | ||
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.103.0.tgz#8f626362c96f9aa4b4a52042c431d16372491dc1" | ||
integrity sha512-LCI+PIDoF/RLqN41fNXum3ilmS6ukni6L7t38vSdibbe2G0804EbPLtOIpv2PkS8E6CFuRW5zOb+8OwEAAtZWw== | ||
dependencies: | ||
"@sentry/types" "7.103.0" | ||
"@sentry/utils" "7.103.0" | ||
|
||
"@sentry/node@^7.103.0": | ||
version "7.103.0" | ||
resolved "https://registry.yarnpkg.com/@sentry/node/-/node-7.103.0.tgz#9cf488086717c2920c43568432d14232b6783a9e" | ||
integrity sha512-/bS/WNeO+PEd0r3o3LN0XGJV+l7hLNy1dTcn61VRgWGVs8SqMBb3uAvXAibZ9zGTCkaX/Ky3JumMcOOoxmNCtg== | ||
dependencies: | ||
"@sentry-internal/tracing" "7.103.0" | ||
"@sentry/core" "7.103.0" | ||
"@sentry/types" "7.103.0" | ||
"@sentry/utils" "7.103.0" | ||
|
||
"@sentry/[email protected]": | ||
version "7.103.0" | ||
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.103.0.tgz#f413f922216c97ec86bae39f9d527669d8afedbd" | ||
integrity sha512-NCvKyx8d2AGBQKPARrJemZmZ16DiMo688OEikZg4BbvFNDUzK5Egm2BH0vfLDhbNkU19o3maJowrYo42m8r9Zw== | ||
|
||
"@sentry/[email protected]": | ||
version "7.103.0" | ||
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.103.0.tgz#803b76e2adfdcec0d4ab6369cc8990dde19b55f4" | ||
integrity sha512-phkUJt3F0UOkVq+M4GfdAh2ewI3ASrNiJddx9aO7GnT0aDwwVBHZltnqt95qgAB8W+BipTSt1dAh8yUbbq1Ceg== | ||
dependencies: | ||
"@sentry/types" "7.103.0" | ||
|
||
"@sideway/address@^4.1.3": | ||
version "4.1.4" | ||
resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.4.tgz#03dccebc6ea47fdc226f7d3d1ad512955d4783f0" | ||
|