@@ -18,7 +18,7 @@ test.describe('database integration', () => {
1818 expect ( dbSpan ?. description ) . toBe ( 'SELECT * FROM users WHERE id = ?' ) ;
1919 expect ( dbSpan ?. data ?. [ 'db.system.name' ] ) . toBe ( 'sqlite' ) ;
2020 expect ( dbSpan ?. data ?. [ 'db.query.text' ] ) . toBe ( 'SELECT * FROM users WHERE id = ?' ) ;
21- expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nitro ' ) ;
21+ expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nuxt ' ) ;
2222 } ) ;
2323
2424 test ( 'captures db.prepare().all() span' , async ( { request } ) => {
@@ -39,7 +39,7 @@ test.describe('database integration', () => {
3939 expect ( dbSpan ?. description ) . toBe ( 'SELECT * FROM products WHERE price > ?' ) ;
4040 expect ( dbSpan ?. data ?. [ 'db.system.name' ] ) . toBe ( 'sqlite' ) ;
4141 expect ( dbSpan ?. data ?. [ 'db.query.text' ] ) . toBe ( 'SELECT * FROM products WHERE price > ?' ) ;
42- expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nitro ' ) ;
42+ expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nuxt ' ) ;
4343 } ) ;
4444
4545 test ( 'captures db.prepare().run() span' , async ( { request } ) => {
@@ -60,7 +60,7 @@ test.describe('database integration', () => {
6060 expect ( dbSpan ?. description ) . toBe ( 'INSERT INTO orders (customer, amount) VALUES (?, ?)' ) ;
6161 expect ( dbSpan ?. data ?. [ 'db.system.name' ] ) . toBe ( 'sqlite' ) ;
6262 expect ( dbSpan ?. data ?. [ 'db.query.text' ] ) . toBe ( 'INSERT INTO orders (customer, amount) VALUES (?, ?)' ) ;
63- expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nitro ' ) ;
63+ expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nuxt ' ) ;
6464 } ) ;
6565
6666 test ( 'captures db.prepare().bind().all() span' , async ( { request } ) => {
@@ -81,7 +81,7 @@ test.describe('database integration', () => {
8181 expect ( dbSpan ?. description ) . toBe ( 'SELECT * FROM items WHERE category = ?' ) ;
8282 expect ( dbSpan ?. data ?. [ 'db.system.name' ] ) . toBe ( 'sqlite' ) ;
8383 expect ( dbSpan ?. data ?. [ 'db.query.text' ] ) . toBe ( 'SELECT * FROM items WHERE category = ?' ) ;
84- expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nitro ' ) ;
84+ expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nuxt ' ) ;
8585 } ) ;
8686
8787 test ( 'captures db.sql template tag span' , async ( { request } ) => {
@@ -102,7 +102,7 @@ test.describe('database integration', () => {
102102 expect ( dbSpan ?. description ) . toContain ( 'INSERT INTO messages' ) ;
103103 expect ( dbSpan ?. data ?. [ 'db.system.name' ] ) . toBe ( 'sqlite' ) ;
104104 expect ( dbSpan ?. data ?. [ 'db.query.text' ] ) . toContain ( 'INSERT INTO messages' ) ;
105- expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nitro ' ) ;
105+ expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nuxt ' ) ;
106106 } ) ;
107107
108108 test ( 'captures db.exec() span' , async ( { request } ) => {
@@ -123,7 +123,7 @@ test.describe('database integration', () => {
123123 expect ( dbSpan ?. description ) . toBe ( `INSERT INTO logs (message, level) VALUES ('Test log', 'INFO')` ) ;
124124 expect ( dbSpan ?. data ?. [ 'db.system.name' ] ) . toBe ( 'sqlite' ) ;
125125 expect ( dbSpan ?. data ?. [ 'db.query.text' ] ) . toBe ( `INSERT INTO logs (message, level) VALUES ('Test log', 'INFO')` ) ;
126- expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nitro ' ) ;
126+ expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nuxt ' ) ;
127127 } ) ;
128128
129129 test ( 'captures database error and marks span as failed' , async ( { request } ) => {
@@ -145,7 +145,7 @@ test.describe('database integration', () => {
145145 expect ( error . exception ?. values ?. [ 0 ] ?. value ) . toContain ( 'no such table' ) ;
146146 expect ( error . exception ?. values ?. [ 0 ] ?. mechanism ) . toEqual ( {
147147 handled : false ,
148- type : 'auto.db.nitro ' ,
148+ type : 'auto.db.nuxt ' ,
149149 } ) ;
150150
151151 const dbSpan = transaction . spans ?. find (
@@ -157,7 +157,7 @@ test.describe('database integration', () => {
157157 expect ( dbSpan ?. description ) . toBe ( 'SELECT * FROM nonexistent_table WHERE invalid_column = ?' ) ;
158158 expect ( dbSpan ?. data ?. [ 'db.system.name' ] ) . toBe ( 'sqlite' ) ;
159159 expect ( dbSpan ?. data ?. [ 'db.query.text' ] ) . toBe ( 'SELECT * FROM nonexistent_table WHERE invalid_column = ?' ) ;
160- expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nitro ' ) ;
160+ expect ( dbSpan ?. data ?. [ 'sentry.origin' ] ) . toBe ( 'auto.db.nuxt ' ) ;
161161 expect ( dbSpan ?. status ) . toBe ( 'internal_error' ) ;
162162 } ) ;
163163
0 commit comments