File tree 8 files changed +74
-0
lines changed
gettingStartedDocs/convex
8 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 66
66
"apple-macos" ,
67
67
"bun" ,
68
68
"capacitor" ,
69
+ "convex" ,
69
70
"cordova" ,
70
71
"dart" ,
71
72
"deno" ,
Original file line number Diff line number Diff line change 112
112
# Mirrors `const serverless` in sentry/static/app/data/platformCategories.tsx
113
113
# When changing this file, make sure to keep sentry/static/app/data/platformCategories.tsx in sync.
114
114
SERVERLESS = {
115
+ "convex" ,
115
116
"dotnet-awslambda" ,
116
117
"dotnet-gcpfunctions" ,
117
118
"node-awslambda" ,
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ export const backend: PlatformKey[] = [
117
117
// Mirrors `SERVERLESS` in src/sentry/utils/platform_categories.py
118
118
// When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
119
119
export const serverless : PlatformKey [ ] = [
120
+ 'convex' ,
120
121
'dotnet-awslambda' ,
121
122
'dotnet-gcpfunctions' ,
122
123
'node-awslambda' ,
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ const desktop: Set<PlatformKey> = new Set([
134
134
] ) ;
135
135
136
136
const serverless : Set < PlatformKey > = new Set ( [
137
+ 'convex' ,
137
138
'dotnet-awslambda' ,
138
139
'dotnet-gcpfunctions' ,
139
140
'node-awslambda' ,
Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ export const platforms: PlatformIntegration[] = [
46
46
language : 'capacitor' ,
47
47
link : 'https://docs.sentry.io/platforms/javascript/guides/capacitor/' ,
48
48
} ,
49
+ {
50
+ id : 'convex' ,
51
+ name : 'Convex' ,
52
+ type : 'language' ,
53
+ language : 'convex' ,
54
+ link : 'https://docs.sentry.io/platforms/javascript/guides/convex/' ,
55
+ } ,
49
56
{
50
57
id : 'cordova' ,
51
58
name : 'Cordova' ,
Original file line number Diff line number Diff line change
1
+ import { Fragment } from 'react' ;
2
+
3
+ import ExternalLink from 'sentry/components/links/externalLink' ;
4
+ import { StepType } from 'sentry/components/onboarding/gettingStartedDoc/step' ;
5
+ import type {
6
+ Docs ,
7
+ OnboardingConfig ,
8
+ } from 'sentry/components/onboarding/gettingStartedDoc/types' ;
9
+ import { t , tct } from 'sentry/locale' ;
10
+
11
+ const failingAction = `
12
+ export const userError = action(async () => {
13
+ throw new Error("I failed you!");
14
+ });
15
+ ` ;
16
+
17
+ const onboarding : OnboardingConfig = {
18
+ install : ( ) => [
19
+ {
20
+ type : StepType . INSTALL ,
21
+ description : tct (
22
+ 'Set up Sentry in your Convex project [link:deployment settings].' ,
23
+ {
24
+ link : (
25
+ < ExternalLink href = "https://docs.convex.dev/production/integrations/exception-reporting#configuring-sentry" />
26
+ ) ,
27
+ }
28
+ ) ,
29
+ configurations : [ ] ,
30
+ } ,
31
+ ] ,
32
+ configure : ( ) => [ ] ,
33
+ verify : ( ) => [
34
+ {
35
+ type : StepType . VERIFY ,
36
+ description : (
37
+ < Fragment >
38
+ { t (
39
+ 'One way to verify your setup is by calling an action that throws intentionally.'
40
+ ) }
41
+ < p > { t ( 'Calling an undefined function will throw an exception:' ) } </ p >
42
+ </ Fragment >
43
+ ) ,
44
+ configurations : [
45
+ {
46
+ language : 'javascript' ,
47
+ code : failingAction ,
48
+ } ,
49
+ {
50
+ language : 'bash' ,
51
+ code : 'npx convex run myModule:userError' ,
52
+ } ,
53
+ ] ,
54
+ } ,
55
+ ] ,
56
+ } ;
57
+
58
+ const docs : Docs = {
59
+ onboarding,
60
+ } ;
61
+
62
+ export default docs ;
Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ export type PlatformKey =
155
155
| 'cocoa'
156
156
| 'cocoa-objc'
157
157
| 'cocoa-swift'
158
+ | 'convex'
158
159
| 'cordova'
159
160
| 'csharp'
160
161
| 'csharp-aspnetcore'
You can’t perform that action at this time.
0 commit comments