@@ -7,100 +7,104 @@ conditionalTest({ min: 16 })('Prisma ORM Tests', () => {
77 transaction : 'Test Transaction' ,
88 spans : expect . arrayContaining ( [
99 expect . objectContaining ( {
10- data : expect . objectContaining ( {
10+ data : {
1111 method : 'create' ,
1212 model : 'User' ,
1313 name : 'User.create' ,
1414 'otel.kind' : 'INTERNAL' ,
15- 'sentry.origin' : 'manual ' ,
16- } ) ,
15+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
16+ } ,
1717 description : 'prisma:client:operation' ,
1818 status : 'ok' ,
1919 } ) ,
2020 expect . objectContaining ( {
21- data : expect . objectContaining ( {
21+ data : {
2222 'otel.kind' : 'INTERNAL' ,
23- 'sentry.origin' : 'manual ' ,
24- } ) ,
23+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
24+ } ,
2525 description : 'prisma:client:serialize' ,
2626 status : 'ok' ,
2727 } ) ,
2828 expect . objectContaining ( {
29- data : expect . objectContaining ( {
29+ data : {
3030 'otel.kind' : 'INTERNAL' ,
31- 'sentry.origin' : 'manual ' ,
32- } ) ,
31+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
32+ } ,
3333 description : 'prisma:client:connect' ,
3434 status : 'ok' ,
3535 } ) ,
3636 expect . objectContaining ( {
37- data : expect . objectContaining ( {
37+ data : {
3838 'otel.kind' : 'INTERNAL' ,
39- 'sentry.origin' : 'manual ' ,
40- } ) ,
39+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
40+ } ,
4141 description : 'prisma:engine' ,
4242 status : 'ok' ,
4343 } ) ,
4444 expect . objectContaining ( {
45- data : expect . objectContaining ( {
45+ data : {
4646 'db.type' : 'postgres' ,
4747 'otel.kind' : 'INTERNAL' ,
48- 'sentry.origin' : 'manual ' ,
49- } ) ,
48+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
49+ } ,
5050 description : 'prisma:engine:connection' ,
5151 status : 'ok' ,
5252 } ) ,
5353 expect . objectContaining ( {
54- data : expect . objectContaining ( {
54+ data : {
5555 'db.statement' : expect . stringContaining (
5656 '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' ,
5757 ) ,
5858 '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+ ) ,
6266 status : 'ok' ,
6367 } ) ,
6468 expect . objectContaining ( {
65- data : expect . objectContaining ( {
69+ data : {
6670 'otel.kind' : 'INTERNAL' ,
67- 'sentry.origin' : 'manual ' ,
68- } ) ,
71+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
72+ } ,
6973 description : 'prisma:engine:serialize' ,
7074 status : 'ok' ,
7175 } ) ,
7276 expect . objectContaining ( {
73- data : expect . objectContaining ( {
77+ data : {
7478 'otel.kind' : 'INTERNAL' ,
75- 'sentry.origin' : 'manual ' ,
76- } ) ,
79+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
80+ } ,
7781 description : 'prisma:engine:response_json_serialization' ,
7882 status : 'ok' ,
7983 } ) ,
8084 expect . objectContaining ( {
81- data : expect . objectContaining ( {
85+ data : {
8286 method : 'findMany' ,
8387 model : 'User' ,
8488 name : 'User.findMany' ,
8589 'otel.kind' : 'INTERNAL' ,
86- 'sentry.origin' : 'manual ' ,
87- } ) ,
90+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
91+ } ,
8892 description : 'prisma:client:operation' ,
8993 status : 'ok' ,
9094 } ) ,
9195 expect . objectContaining ( {
92- data : expect . objectContaining ( {
96+ data : {
9397 'otel.kind' : 'INTERNAL' ,
94- 'sentry.origin' : 'manual ' ,
95- } ) ,
98+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
99+ } ,
96100 description : 'prisma:client:serialize' ,
97101 status : 'ok' ,
98102 } ) ,
99103 expect . objectContaining ( {
100- data : expect . objectContaining ( {
104+ data : {
101105 'otel.kind' : 'INTERNAL' ,
102- 'sentry.origin' : 'manual ' ,
103- } ) ,
106+ 'sentry.origin' : 'auto.db.otel.prisma ' ,
107+ } ,
104108 description : 'prisma:engine' ,
105109 status : 'ok' ,
106110 } ) ,
0 commit comments