Skip to content

Commit

Permalink
Check for valid error
Browse files Browse the repository at this point in the history
  • Loading branch information
zodern committed Jul 11, 2024
1 parent 0fbc673 commit dd18cdb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/tracer/tracer_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ TracerStore.prototype._handleErrors = function (trace) {
if (lastEvent && lastEvent[2]) {
let error = lastEvent[2].error;

if (!error) {
logger('trace does not have valid error', JSON.stringify(trace.events));
return;
}

// grouping errors occured (reset after processTraces)
let errorKey = [trace.type, trace.name, error.message].join('::');
if (!this.errorMap[errorKey]) {
Expand Down

0 comments on commit dd18cdb

Please sign in to comment.