File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
sdk/src/main/java/io/tebex/sdk Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,8 @@ default void sendTriageEvent(String errorMessage) {
190190 StringWriter traceWriter = new StringWriter ();
191191 new Exception ("stack trace for error message" ).printStackTrace (new PrintWriter (traceWriter ));
192192 HashMap <String , String > metadata = new HashMap <>();
193-
194- TriageEvent .fromPlatform (this ).withErrorMessage (errorMessage ).send ();
193+ metadata . put ( "trace" , traceWriter . toString ());
194+ TriageEvent .fromPlatform (this ).withErrorMessage (errorMessage ).withMetadata ( metadata ). send ();
195195 }
196196
197197 default void sendTriageEvent (Throwable exception ) {
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public void send() {
125125 .withBody (this .toJsonString (), "POST" );
126126
127127 // Store name is set automatically by fromPlatform
128- if (this .storeName .equals ("" )) {
128+ if (this .storeName != null && this . storeName .equals ("" )) {
129129 _platform .debug ("No store info while sending triage event, ignoring event" );
130130 return ;
131131 }
You can’t perform that action at this time.
0 commit comments