File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
packages/node/test/manual/express-scope-separation Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -32,22 +32,27 @@ Sentry.init({
3232 dsn :
'http://[email protected] /1337' , 3333 transport : DummyTransport ,
3434 beforeSend ( event ) {
35- if ( event . message === 'Error: foo' ) {
35+ if ( event . transaction === 'GET / foo' ) {
3636 assertTags ( event . tags , {
3737 global : 'wat' ,
3838 foo : 'wat' ,
3939 } ) ;
40- } else if ( event . message === 'Error: bar' ) {
40+ } else if ( event . transaction === 'GET / bar' ) {
4141 assertTags ( event . tags , {
4242 global : 'wat' ,
4343 bar : 'wat' ,
4444 } ) ;
45- } else if ( event . message === 'Error: baz' ) {
45+ } else if ( event . transaction === 'GET / baz' ) {
4646 assertTags ( event . tags , {
4747 global : 'wat' ,
4848 baz : 'wat' ,
4949 } ) ;
50+ } else {
51+ assertTags ( event . tags , {
52+ global : 'wat' ,
53+ } ) ;
5054 }
55+
5156 return event ;
5257 } ,
5358} ) ;
You can’t perform that action at this time.
0 commit comments