Skip to content

Please remove math.random from the examples #311

@bofm

Description

@bofm

The examples in the docs use math.random for getting duration:

local latency = math.random(1, 10)
http_requests_latency_hist:observe(latency)

Please make the examples more real by using clock.monotonic or any other method which the developers of metrics recommend for production usage.

Metadata

Metadata

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions