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({
32
32
dsn :
'http://[email protected] /1337' ,
33
33
transport : DummyTransport ,
34
34
beforeSend ( event ) {
35
- if ( event . message === 'Error: foo' ) {
35
+ if ( event . transaction === 'GET / foo' ) {
36
36
assertTags ( event . tags , {
37
37
global : 'wat' ,
38
38
foo : 'wat' ,
39
39
} ) ;
40
- } else if ( event . message === 'Error: bar' ) {
40
+ } else if ( event . transaction === 'GET / bar' ) {
41
41
assertTags ( event . tags , {
42
42
global : 'wat' ,
43
43
bar : 'wat' ,
44
44
} ) ;
45
- } else if ( event . message === 'Error: baz' ) {
45
+ } else if ( event . transaction === 'GET / baz' ) {
46
46
assertTags ( event . tags , {
47
47
global : 'wat' ,
48
48
baz : 'wat' ,
49
49
} ) ;
50
+ } else {
51
+ assertTags ( event . tags , {
52
+ global : 'wat' ,
53
+ } ) ;
50
54
}
55
+
51
56
return event ;
52
57
} ,
53
58
} ) ;
You can’t perform that action at this time.
0 commit comments