@@ -7,100 +7,104 @@ conditionalTest({ min: 16 })('Prisma ORM Tests', () => {
7
7
transaction : 'Test Transaction' ,
8
8
spans : expect . arrayContaining ( [
9
9
expect . objectContaining ( {
10
- data : expect . objectContaining ( {
10
+ data : {
11
11
method : 'create' ,
12
12
model : 'User' ,
13
13
name : 'User.create' ,
14
14
'otel.kind' : 'INTERNAL' ,
15
- 'sentry.origin' : 'manual ' ,
16
- } ) ,
15
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
16
+ } ,
17
17
description : 'prisma:client:operation' ,
18
18
status : 'ok' ,
19
19
} ) ,
20
20
expect . objectContaining ( {
21
- data : expect . objectContaining ( {
21
+ data : {
22
22
'otel.kind' : 'INTERNAL' ,
23
- 'sentry.origin' : 'manual ' ,
24
- } ) ,
23
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
24
+ } ,
25
25
description : 'prisma:client:serialize' ,
26
26
status : 'ok' ,
27
27
} ) ,
28
28
expect . objectContaining ( {
29
- data : expect . objectContaining ( {
29
+ data : {
30
30
'otel.kind' : 'INTERNAL' ,
31
- 'sentry.origin' : 'manual ' ,
32
- } ) ,
31
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
32
+ } ,
33
33
description : 'prisma:client:connect' ,
34
34
status : 'ok' ,
35
35
} ) ,
36
36
expect . objectContaining ( {
37
- data : expect . objectContaining ( {
37
+ data : {
38
38
'otel.kind' : 'INTERNAL' ,
39
- 'sentry.origin' : 'manual ' ,
40
- } ) ,
39
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
40
+ } ,
41
41
description : 'prisma:engine' ,
42
42
status : 'ok' ,
43
43
} ) ,
44
44
expect . objectContaining ( {
45
- data : expect . objectContaining ( {
45
+ data : {
46
46
'db.type' : 'postgres' ,
47
47
'otel.kind' : 'INTERNAL' ,
48
- 'sentry.origin' : 'manual ' ,
49
- } ) ,
48
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
49
+ } ,
50
50
description : 'prisma:engine:connection' ,
51
51
status : 'ok' ,
52
52
} ) ,
53
53
expect . objectContaining ( {
54
- data : expect . objectContaining ( {
54
+ data : {
55
55
'db.statement' : expect . stringContaining (
56
56
'INSERT INTO "public"."User" ("createdAt","email","name") VALUES ($1,$2,$3) RETURNING "public"."User"."id", "public"."User"."createdAt", "public"."User"."email", "public"."User"."name" /* traceparent' ,
57
57
) ,
58
58
'otel.kind' : 'INTERNAL' ,
59
- 'sentry.origin' : 'manual' ,
60
- } ) ,
61
- description : 'prisma:engine:db_query' ,
59
+ 'sentry.origin' : 'auto.db.otel.prisma' ,
60
+ 'db.system' : 'prisma' ,
61
+ 'sentry.op' : 'db' ,
62
+ } ,
63
+ description : expect . stringContaining (
64
+ 'INSERT INTO "public"."User" ("createdAt","email","name") VALUES ($1,$2,$3) RETURNING "public"."User"."id", "public"."User"."createdAt", "public"."User"."email", "public"."User"."name" /* traceparent' ,
65
+ ) ,
62
66
status : 'ok' ,
63
67
} ) ,
64
68
expect . objectContaining ( {
65
- data : expect . objectContaining ( {
69
+ data : {
66
70
'otel.kind' : 'INTERNAL' ,
67
- 'sentry.origin' : 'manual ' ,
68
- } ) ,
71
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
72
+ } ,
69
73
description : 'prisma:engine:serialize' ,
70
74
status : 'ok' ,
71
75
} ) ,
72
76
expect . objectContaining ( {
73
- data : expect . objectContaining ( {
77
+ data : {
74
78
'otel.kind' : 'INTERNAL' ,
75
- 'sentry.origin' : 'manual ' ,
76
- } ) ,
79
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
80
+ } ,
77
81
description : 'prisma:engine:response_json_serialization' ,
78
82
status : 'ok' ,
79
83
} ) ,
80
84
expect . objectContaining ( {
81
- data : expect . objectContaining ( {
85
+ data : {
82
86
method : 'findMany' ,
83
87
model : 'User' ,
84
88
name : 'User.findMany' ,
85
89
'otel.kind' : 'INTERNAL' ,
86
- 'sentry.origin' : 'manual ' ,
87
- } ) ,
90
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
91
+ } ,
88
92
description : 'prisma:client:operation' ,
89
93
status : 'ok' ,
90
94
} ) ,
91
95
expect . objectContaining ( {
92
- data : expect . objectContaining ( {
96
+ data : {
93
97
'otel.kind' : 'INTERNAL' ,
94
- 'sentry.origin' : 'manual ' ,
95
- } ) ,
98
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
99
+ } ,
96
100
description : 'prisma:client:serialize' ,
97
101
status : 'ok' ,
98
102
} ) ,
99
103
expect . objectContaining ( {
100
- data : expect . objectContaining ( {
104
+ data : {
101
105
'otel.kind' : 'INTERNAL' ,
102
- 'sentry.origin' : 'manual ' ,
103
- } ) ,
106
+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
107
+ } ,
104
108
description : 'prisma:engine' ,
105
109
status : 'ok' ,
106
110
} ) ,
0 commit comments