Skip to content

Commit a5c2599

Browse files
committed
update configurations schema for Sentry org and projects
1 parent 663612f commit a5c2599

File tree

1 file changed

+39
-4
lines changed

1 file changed

+39
-4
lines changed

package.json

+39-4
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,50 @@
2525
"configuration": {
2626
"title": "Sentry extension settings",
2727
"properties": {
28-
"sentry.organization": {
28+
"sentryOrganization": {
2929
"description": "Name of the Sentry organization",
3030
"type": "string",
3131
"default": ""
3232
},
33-
"sentry.projects": {
34-
"description": "List of projects collecting logs",
33+
"sentryProjects": {
3534
"type": "array",
36-
"default": []
35+
"items": {
36+
"name": { "type" : "string" },
37+
"type" : "object",
38+
"description": "Sentry project receiving logs",
39+
"projectId": {
40+
"description": "Sentry project id, e.g. 12351512",
41+
"type": "string"
42+
},
43+
"patternProperties" : {
44+
"repoMatch": {
45+
"type" : "string",
46+
"description": "Regex to match repos associated to this Sentre project, e.g. github\\.com/sourcegraph/sourcegraph"
47+
},
48+
"fileMatch": {
49+
"type" : "string",
50+
"description": "Regex to match files associated with this project, e.g. (web|shared)/.*\\.tsx?$"
51+
},
52+
"lineMatch": {
53+
"type" : "string",
54+
"description" : "Regex to match lines associated with this project, e.g. throw new Error\\([\"']([^'\"]+)[\"']\\)"
55+
}
56+
},
57+
"additionalProperties" : {
58+
"contentText": {
59+
"description" : "Text shown in Sentry link, e.g. View sourcegraph/sourcegraph_dot_com errors",
60+
"type" : "string"
61+
},
62+
"hoverMessage": {
63+
"description" : "Hovertext shown on Sentry link, e.g. View errors matching '$1' in Sentry",
64+
"type" : "string"
65+
},
66+
"query": {
67+
"description" : "Query derived from error handling code $1",
68+
"type" : "string"
69+
}
70+
}
71+
}
3772
}
3873
}
3974
}

0 commit comments

Comments
 (0)