@@ -53,54 +53,4 @@ describe('postgres auto instrumentation', () => {
53
53
. expect ( { transaction : EXPECTED_TRANSACTION } )
54
54
. start ( done ) ;
55
55
} ) ;
56
-
57
- test ( 'should auto-instrument `pg-native` package' , done => {
58
- const EXPECTED_TRANSACTION = {
59
- transaction : 'Test Transaction' ,
60
- spans : expect . arrayContaining ( [
61
- expect . objectContaining ( {
62
- data : expect . objectContaining ( {
63
- 'db.system' : 'postgresql' ,
64
- 'db.name' : 'tests' ,
65
- 'sentry.origin' : 'manual' ,
66
- 'sentry.op' : 'db' ,
67
- } ) ,
68
- description : 'pg.connect' ,
69
- op : 'db' ,
70
- status : 'ok' ,
71
- } ) ,
72
- expect . objectContaining ( {
73
- data : expect . objectContaining ( {
74
- 'db.system' : 'postgresql' ,
75
- 'db.name' : 'tests' ,
76
- 'db.statement' : 'INSERT INTO "NativeUser" ("email", "name") VALUES ($1, $2)' ,
77
- 'sentry.origin' : 'auto.db.otel.postgres' ,
78
- 'sentry.op' : 'db' ,
79
- } ) ,
80
- description : 'INSERT INTO "NativeUser" ("email", "name") VALUES ($1, $2)' ,
81
- op : 'db' ,
82
- status : 'ok' ,
83
- origin : 'auto.db.otel.postgres' ,
84
- } ) ,
85
- expect . objectContaining ( {
86
- data : expect . objectContaining ( {
87
- 'db.system' : 'postgresql' ,
88
- 'db.name' : 'tests' ,
89
- 'db.statement' : 'SELECT * FROM "NativeUser"' ,
90
- 'sentry.origin' : 'auto.db.otel.postgres' ,
91
- 'sentry.op' : 'db' ,
92
- } ) ,
93
- description : 'SELECT * FROM "NativeUser"' ,
94
- op : 'db' ,
95
- status : 'ok' ,
96
- origin : 'auto.db.otel.postgres' ,
97
- } ) ,
98
- ] ) ,
99
- } ;
100
-
101
- createRunner ( __dirname , 'scenario-native.js' )
102
- . withDockerCompose ( { workingDirectory : [ __dirname ] , readyMatches : [ 'port 5432' ] } )
103
- . expect ( { transaction : EXPECTED_TRANSACTION } )
104
- . start ( done ) ;
105
- } ) ;
106
56
} ) ;
0 commit comments