@@ -98,6 +98,7 @@ public function export()
98
98
$ data = [
99
99
'message ' => '' ,
100
100
'tags ' => ['category ' => $ category ],
101
+ 'context ' => [],
101
102
'extra ' => [],
102
103
'userData ' => [],
103
104
];
@@ -128,7 +129,7 @@ public function export()
128
129
}
129
130
if (isset ($ text ['error ' ])) {
130
131
$ data ['message ' ] = (string )$ text ['error ' ];
131
- unset($ text ['message ' ]);
132
+ unset($ text ['error ' ]);
132
133
}
133
134
// if none of the above have text, stringify the object
134
135
if (!isset ($ data ['message ' ])) {
@@ -145,7 +146,7 @@ public function export()
145
146
unset($ text ['exception ' ]);
146
147
}
147
148
148
- $ data ['extra ' ] = $ text ;
149
+ $ data ['context ' ] = $ text ;
149
150
} else {
150
151
$ data ['message ' ] = (string )$ text ;
151
152
}
@@ -157,8 +158,8 @@ public function export()
157
158
$ data = $ this ->runExtraCallback ($ text , $ data );
158
159
159
160
$ scope ->setUser ($ data ['userData ' ]);
160
- foreach ($ data ['extra ' ] as $ key => $ value ) {
161
- $ scope ->setExtra ((string )$ key , $ value );
161
+ foreach ($ data ['context ' ] as $ key => $ value ) {
162
+ $ scope ->setContext ((string )$ key , $ value );
162
163
}
163
164
foreach ($ data ['tags ' ] as $ key => $ value ) {
164
165
if ($ value ) {
0 commit comments