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 63
63
"apple-macos" ,
64
64
"bun" ,
65
65
"capacitor" ,
66
+ "convex" ,
66
67
"cordova" ,
67
68
"dart" ,
68
69
"deno" ,
Original file line number Diff line number Diff line change 108
108
# Mirrors `const serverless` in sentry/static/app/data/platformCategories.tsx
109
109
# When changing this file, make sure to keep sentry/static/app/data/platformCategories.tsx in sync.
110
110
SERVERLESS = [
111
+ "convex" ,
111
112
"dotnet-awslambda" ,
112
113
"dotnet-gcpfunctions" ,
113
114
"node-awslambda" ,
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ export const backend: PlatformKey[] = [
116
116
// Mirrors `SERVERLESS` in src/sentry/utils/platform_categories.py
117
117
// When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
118
118
export const serverless : PlatformKey [ ] = [
119
+ 'convex' ,
119
120
'dotnet-awslambda' ,
120
121
'dotnet-gcpfunctions' ,
121
122
'node-awslambda' ,
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ const desktop: Set<PlatformKey> = new Set([
129
129
] ) ;
130
130
131
131
const serverless : Set < PlatformKey > = new Set ( [
132
+ 'convex' ,
132
133
'dotnet-awslambda' ,
133
134
'dotnet-gcpfunctions' ,
134
135
'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 @@ -148,6 +148,7 @@ export type PlatformKey =
148
148
| 'cocoa'
149
149
| 'cocoa-objc'
150
150
| 'cocoa-swift'
151
+ | 'convex'
151
152
| 'cordova'
152
153
| 'csharp'
153
154
| 'csharp-aspnetcore'
You can’t perform that action at this time.
0 commit comments