@@ -49,7 +49,6 @@ describe('postgres auto instrumentation', () => {
4949 await createRunner ( __dirname , 'scenario.js' )
5050 . withDockerCompose ( {
5151 workingDirectory : [ __dirname ] ,
52- setupCommand : 'yarn' ,
5352 } )
5453 . expect ( { transaction : EXPECTED_TRANSACTION } )
5554 . start ( )
@@ -60,7 +59,6 @@ describe('postgres auto instrumentation', () => {
6059 await createRunner ( __dirname , 'scenario-ignoreConnect.js' )
6160 . withDockerCompose ( {
6261 workingDirectory : [ __dirname ] ,
63- setupCommand : 'yarn' ,
6462 } )
6563 . expect ( {
6664 transaction : txn => {
@@ -102,58 +100,4 @@ describe('postgres auto instrumentation', () => {
102100 . start ( )
103101 . completed ( ) ;
104102 } ) ;
105-
106- test ( 'should auto-instrument `pg-native` package' , { timeout : 90_000 } , async ( ) => {
107- const EXPECTED_TRANSACTION = {
108- transaction : 'Test Transaction' ,
109- spans : expect . arrayContaining ( [
110- expect . objectContaining ( {
111- data : expect . objectContaining ( {
112- 'db.system' : 'postgresql' ,
113- 'db.name' : 'tests' ,
114- 'sentry.origin' : 'manual' ,
115- 'sentry.op' : 'db' ,
116- } ) ,
117- description : 'pg.connect' ,
118- op : 'db' ,
119- status : 'ok' ,
120- } ) ,
121- expect . objectContaining ( {
122- data : expect . objectContaining ( {
123- 'db.system' : 'postgresql' ,
124- 'db.name' : 'tests' ,
125- 'db.statement' : 'INSERT INTO "NativeUser" ("email", "name") VALUES ($1, $2)' ,
126- 'sentry.origin' : 'auto.db.otel.postgres' ,
127- 'sentry.op' : 'db' ,
128- } ) ,
129- description : 'INSERT INTO "NativeUser" ("email", "name") VALUES ($1, $2)' ,
130- op : 'db' ,
131- status : 'ok' ,
132- origin : 'auto.db.otel.postgres' ,
133- } ) ,
134- expect . objectContaining ( {
135- data : expect . objectContaining ( {
136- 'db.system' : 'postgresql' ,
137- 'db.name' : 'tests' ,
138- 'db.statement' : 'SELECT * FROM "NativeUser"' ,
139- 'sentry.origin' : 'auto.db.otel.postgres' ,
140- 'sentry.op' : 'db' ,
141- } ) ,
142- description : 'SELECT * FROM "NativeUser"' ,
143- op : 'db' ,
144- status : 'ok' ,
145- origin : 'auto.db.otel.postgres' ,
146- } ) ,
147- ] ) ,
148- } ;
149-
150- await createRunner ( __dirname , 'scenario-native.js' )
151- . withDockerCompose ( {
152- workingDirectory : [ __dirname ] ,
153- setupCommand : 'yarn' ,
154- } )
155- . expect ( { transaction : EXPECTED_TRANSACTION } )
156- . start ( )
157- . completed ( ) ;
158- } ) ;
159103} ) ;
0 commit comments