Skip to content

Commit

Permalink
Fix unhandled telemetry promise (#61376)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvc authored Mar 26, 2020
1 parent 933b6ee commit 6222be5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class KibanaTelemetryAdapter {
this.collector[bucket].observer_location_name_stats = {
min_length: locationNameStats?.min_length ?? 0,
max_length: locationNameStats?.max_length ?? 0,
avg_length: +locationNameStats?.avg_length.toFixed(2),
avg_length: +(locationNameStats?.avg_length?.toFixed(2) ?? 0),
};

this.collector[bucket].monitor_frequency = this.getMonitorsFrequency(uniqueMonitors);
Expand Down

0 comments on commit 6222be5

Please sign in to comment.