Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d96577

Browse files
committed
remove sentry
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent2db4a7f commit2d96577

File tree

21 files changed

+18
-995
lines changed

21 files changed

+18
-995
lines changed

‎package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"watch":"tsc -watch -p ./"
3535
},
3636
"dependencies": {
37-
"@sentry/node":"^5.19.2",
3837
"@types/assert":"^1.5.1",
3938
"@types/jest":"^26.0.4",
4039
"@types/jsdom":"^16.2.3",

‎src/actions/setupActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as git from '../services/git'
44
importloadWatchersfrom'./utils/loadWatchers'
55
importopenFilesfrom'./utils/openFiles'
66
importrunCommandsfrom'./utils/runCommands'
7-
importonErrorfrom'../services/sentry/onError'
7+
import{onError}from'../services/telemetry'
88
importloggerfrom'../services/logger'
99

1010
interfaceSetupActions{

‎src/extension.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// init error logging
2-
import'./services/sentry/init'
3-
41
importEditorfrom'./editor'
52

63
// vscode editor

‎src/services/sentry/init.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎src/services/sentry/onError.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎src/services/telemetry/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
importTelemetryReporterfrom'vscode-extension-telemetry'
22
import{EXTENSION_ID,VERSION,INSTRUMENTATION_KEY,NODE_ENV}from'../../environment'
33

4+
/**
5+
* Telemetry
6+
* https://github.com/microsoft/vscode-extension-telemetry
7+
*
8+
*/
9+
410
interfaceProperties{
511
[key:string]:string
612
}
@@ -23,13 +29,13 @@ export const deactivate = (): void => {
2329
}
2430
}
2531

26-
exportconstonError=(error:Error,properties:Properties,measurements:Measurements):void=>{
32+
exportconstonError=(error:Error,properties?:Properties,measurements?:Measurements):void=>{
2733
if(reporter){
2834
reporter.sendTelemetryException(error,properties,measurements)
2935
}
3036
}
3137

32-
exportconstonEvent=(eventName:string,properties:Properties,measurements:Measurements):void=>{
38+
exportconstonEvent=(eventName:string,properties?:Properties,measurements?:Measurements):void=>{
3339
if(reporter){
3440
reporter.sendTelemetryEvent(eventName,properties,measurements)
3541
}

‎src/services/testRunner/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import logger from '../logger'
55
importparser,{ParserOutput}from'./parser'
66
importparseSubtasksfrom'./subtasks'
77
import{debounce,throttle}from'./throttle'
8-
importonErrorfrom'../sentry/onError'
8+
import{onError}from'../telemetry'
99
import{clearOutput,addOutput}from'./output'
1010
import{formatFailOutput}from'./formatOutput'
1111

‎src/services/webview/render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import{JSDOM}from'jsdom'
22
import*aspathfrom'path'
33
import*asvscodefrom'vscode'
4-
importonErrorfrom'../sentry/onError'
4+
import{onError}from'../telemetry'
55

66
constgetNonce=():string=>{
77
lettext=''

‎web-app/.yarn-integrity

Lines changed: 0 additions & 762 deletions
This file was deleted.

‎web-app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@alifd/theme-4":"^0.3.1",
3030
"@emotion/babel-preset-css-prop":"^10.0.27",
3131
"@emotion/core":"^10.0.28",
32-
"@sentry/browser":"^5.19.2",
3332
"js-yaml":"^3.14.0",
3433
"markdown-it":"^11.0.0",
3534
"markdown-it-emoji":"^1.4.0",

‎web-app/src/components/ErrorBoundary/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import*asReactfrom'react'
2-
importonErrorfrom'../../services/sentry/onError'
32
importloggerfrom'../../services/logger'
43

54
classErrorBoundaryextendsReact.Component{
65
publicstate={errorMessage:null}
76

87
publiccomponentDidCatch(error:Error,info:any){
9-
onError(error)
8+
// TODO:onError(error)
109
// Display fallback UI
1110
this.setState({errorMessage:error.message})
1211
// You can also log the error to an error reporting service

‎web-app/src/components/Markdown/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Prism from 'prismjs'
33
//@ts-ignore no types for package
44
importmarkdownEmojifrom'markdown-it-emoji'
55
import*asReactfrom'react'
6-
importonErrorfrom'../../services/sentry/onError'
76
// load prism styles & language support
87
import'./prism'
98

@@ -65,7 +64,7 @@ const Markdown = (props: Props) => {
6564
html=md.render(props.children)
6665
}catch(error){
6766
constmessage=`Failed to parse markdown for${props.children}`
68-
onError(newError(message))
67+
// TODO:onError(new Error(message))
6968
console.log(message)
7069
html=`<div style='background-color: #FFB81A; padding: 0.5rem;'>
7170
<strong style='padding-bottom: 0.5rem;'>ERROR: Failed to parse markdown</strong>

‎web-app/src/components/Router/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import*asReactfrom'react'
2-
importonErrorfrom'../../services/sentry/onError'
32

43
interfaceRouterProps{
54
children:React.ReactChildren|React.ReactChildren[]
@@ -41,7 +40,7 @@ export const Router = ({ children, route }: RouterProps) => {
4140
}
4241
}
4342
constmessage=`No Route matches for "${JSON.stringify(route)}"`
44-
onError(newError(message))
43+
// TODO:onError(new Error(message))
4544
console.warn(message)
4645
returnnull
4746
}

‎web-app/src/environment.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const VERSION: string = process.env.VERSION || 'unknown'
1111
exportconstNODE_ENV:string=process.env.NODE_ENV||'development'
1212
exportconstLOG:boolean=(process.env.REACT_APP_LOG||'').toLowerCase()==='true'
1313
exportconstTUTORIAL_LIST_URL:string=process.env.REACT_APP_TUTORIAL_LIST_URL||''
14-
exportconstSENTRY_DSN:string|null=process.env.REACT_APP_SENTRY_DSN||null
1514

1615
// config variables
1716
exportconstDISPLAY_RUN_TEST_BUTTON=(process.env.CODEROAD_DISPLAY_RUN_TEST_BUTTON||'true').toLowerCase()==='true'

‎web-app/src/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import './mock'
66

77
importAppfrom'./App'
88

9-
// init error logging
10-
import'./services/sentry/init'
119
// init initial styles
1210
import'./styles/index.css'
1311
// init listeners

‎web-app/src/services/selectors/tutorial.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import{createSelector}from'reselect'
22
import{MachineContext}from'typings'
33
import*asTTfrom'typings/tutorial'
4-
importonErrorfrom'../../services/sentry/onError'
54

65
exportconstcurrentTutorial=({ tutorial}:MachineContext):TT.Tutorial=>{
76
if(!tutorial){
87
consterror=newError('Tutorial not found')
9-
onError(error)
8+
// TODO:onError(error)
109
throwerror
1110
}
1211
returntutorial
@@ -23,7 +22,7 @@ export const currentLevel = (context: MachineContext): TT.Level =>
2322
constlevelIndex=levels.findIndex((l:TT.Level)=>l.id===context.position.levelId)
2423
if(levelIndex<0){
2524
consterror=newError(`Level not found when selecting level for${tutorial.id}`)
26-
onError(error)
25+
// TODO:onError(error)
2726
throwerror
2827
}
2928
constlevel:TT.Level=levels[levelIndex]

‎web-app/src/services/sentry/init.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎web-app/src/services/sentry/onError.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎web-app/src/services/state/actions/context.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as T from 'typings'
22
import*asTTfrom'typings/tutorial'
33
import{assign,send,ActionFunctionMap}from'xstate'
44
import*asselectorsfrom'../../selectors'
5-
importonErrorfrom'../../../services/sentry/onError'
65
importloggerfrom'../../../services/logger'
76

87
constcontextActions:ActionFunctionMap<T.MachineContext,T.MachineEvent>={
@@ -148,7 +147,7 @@ const contextActions: ActionFunctionMap<T.MachineContext, T.MachineEvent> = {
148147
// has next level?
149148
if(!context.tutorial){
150149
consterror=newError('Tutorial not found')
151-
onError(error)
150+
// TODO:onError(error)
152151
throwerror
153152
}
154153
}

‎web-app/yarn.lock

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,58 +1639,6 @@
16391639
prop-types "^15.6.1"
16401640
react-lifecycles-compat "^3.0.4"
16411641

1642-
"@sentry/browser@^5.19.2":
1643-
version "5.19.2"
1644-
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-5.19.2.tgz#8bad445b8d1efd50e6510bb43b3018b941f6e5cb"
1645-
integrity sha512-o6Z532n+0N5ANDzgR9GN+Q6CU7zVlIJvBEW234rBiB+ZZj6XwTLS1dD+JexGr8lCo8PeXI2rypKcj1jUGLVW8w==
1646-
dependencies:
1647-
"@sentry/core" "5.19.2"
1648-
"@sentry/types" "5.19.2"
1649-
"@sentry/utils" "5.19.2"
1650-
tslib "^1.9.3"
1651-
1652-
"@sentry/core@5.19.2":
1653-
version "5.19.2"
1654-
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.19.2.tgz#99a64ef0e55230fc02a083c48fa07ada85de4929"
1655-
integrity sha512-sfbBsVXpA0WYJUichz5IhvqKD8xJUfQvsszrTsUKa7PQAMAboOmuh6bo8KquaVQnAZyZWZU08UduvlSV3tA7tw==
1656-
dependencies:
1657-
"@sentry/hub" "5.19.2"
1658-
"@sentry/minimal" "5.19.2"
1659-
"@sentry/types" "5.19.2"
1660-
"@sentry/utils" "5.19.2"
1661-
tslib "^1.9.3"
1662-
1663-
"@sentry/hub@5.19.2":
1664-
version "5.19.2"
1665-
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.19.2.tgz#ab7f3d2d253c3441b2833a530b17c6de2418b2c7"
1666-
integrity sha512-2KkEYX4q9TDCOiaVEo2kQ1W0IXyZxJxZtIjDdFQyes9T4ubYlKHAbvCjTxHSQv37lDO4t7sOIApWG9rlkHzlEA==
1667-
dependencies:
1668-
"@sentry/types" "5.19.2"
1669-
"@sentry/utils" "5.19.2"
1670-
tslib "^1.9.3"
1671-
1672-
"@sentry/minimal@5.19.2":
1673-
version "5.19.2"
1674-
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.19.2.tgz#0fc2fdf9911a0cb31b52f7ccad061b74785724a3"
1675-
integrity sha512-rApEOkjy+ZmkeqEItgFvUFxe5l+dht9AumuUzq74pWp+HJqxxv9IVTusKppBsE1adjtmyhwK4O3Wr8qyc75xlw==
1676-
dependencies:
1677-
"@sentry/hub" "5.19.2"
1678-
"@sentry/types" "5.19.2"
1679-
tslib "^1.9.3"
1680-
1681-
"@sentry/types@5.19.2":
1682-
version "5.19.2"
1683-
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.19.2.tgz#ead586f0b64b91c396d3521b938ca25f7b59d655"
1684-
integrity sha512-O6zkW8oM1qK5Uma9+B/UMlmlm9/gkw9MooqycWuEhIaKfDBj/yVbwb/UTiJmNkGc5VJQo0v1uXUZZQt6/Xq1GA==
1685-
1686-
"@sentry/utils@5.19.2":
1687-
version "5.19.2"
1688-
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.19.2.tgz#f2819d9de5abc33173019e81955904247e4a8246"
1689-
integrity sha512-gEPkC0CJwvIWqcTcPSdIzqJkJa9N5vZzUZyBvdu1oiyJu7MfazpJEvj3whfJMysSfXJQxoJ+a1IPrA73VY23VA==
1690-
dependencies:
1691-
"@sentry/types" "5.19.2"
1692-
tslib "^1.9.3"
1693-
16941642
"@storybook/addon-actions@^5.3.19":
16951643
version "5.3.19"
16961644
resolved "https://registry.yarnpkg.com/@storybook/addon-actions/-/addon-actions-5.3.19.tgz#50548fa6e84bc79ad95233ce23ade4878fc7cfac"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp