App.Metrics snapshot fails when timer metrics don't have any recorded values

Description

https://github.com/datastax/csharp-driver/blob/3fd956506f2583ecdc582f18dd5686e44b30a715/src/Extensions/Cassandra.AppMetrics/HdrHistogram/HistogramBase.cs#L379

This exception is thrown whenever TotalCount is 0 for instance. This happens when the driver doesn't execute any request on a particular node (for example, when it isn't able to sucessfully open connections to a node; in this scenario there is a HostConnectionPool but no open connections in that pool).

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Joao Reis

Labels

None

Reproduced in

3.12.0

PM Priority

None

Fix versions

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Pull Request

None

Epic Link

None

Sprint

Size

None

Affects versions

Priority

Major
Configure