mirror of https://github.com/hashicorp/consul
Browse Source
defaultMetrics was being set at package import time, which meant that it received an instance of the original default. But lib/telemetry.InitTelemetry sets a new global when it is called. This resulted in the metrics being sent nowhere. This commit changes defaultMetrics to be a function, so it will return the global instance when called. Since it is called after InitTelemetry it will return the correct metrics instance.pull/9162/head
Daniel Nephin
4 years ago
4 changed files with 10 additions and 6 deletions
Loading…
Reference in new issue