Skip to content

Commit

Permalink
Make sure timestamp.us is set for error events as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Oct 24, 2022
1 parent cded11e commit 7fb95b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/kbn-apm-synthtrace/src/lib/apm/apm_error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@ export class ApmError extends Serializable<ApmFields> {
);
return [data];
}

timestamp(value: number) {
const ret = super.timestamp(value);
this.fields['timestamp.us'] = value * 1000;
return ret;
}
}

0 comments on commit 7fb95b8

Please sign in to comment.