open-consul/agent/grpc
Daniel Nephin 956bff398a grpc: fix grpc metrics
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.
2020-11-11 14:27:25 -05:00
..
internal/testservice grpc: add Datacenter field to testing service response 2020-09-14 19:02:09 -04:00
resolver agent/grpc: Add an integration test for ClientPool with TLS 2020-10-27 16:34:18 -04:00
client.go grpc: fix grpc metrics 2020-11-11 14:27:25 -05:00
client_test.go agent/grpc: Add an integration test for ClientPool with TLS 2020-10-27 16:34:18 -04:00
handler.go grpc: fix grpc metrics 2020-11-11 14:27:25 -05:00
server_test.go agent/grpc: Add an integration test for ClientPool with TLS 2020-10-27 16:34:18 -04:00
stats.go grpc: fix grpc metrics 2020-11-11 14:27:25 -05:00
stats_test.go grpc: fix grpc metrics 2020-11-11 14:27:25 -05:00