Fixing metrics 45/4945/1 v0.5.10
authorJuha Hyttinen <juha.hyttinen@nokia.com>
Fri, 30 Oct 2020 08:31:39 +0000 (10:31 +0200)
committerJuha Hyttinen <juha.hyttinen@nokia.com>
Fri, 30 Oct 2020 08:33:45 +0000 (10:33 +0200)
commit5bfa60ab8a5e5c7a351d0e6fadd34e55c2957944
tree21a7b174cc55fe85be581b8e7769012c4245bb42
parent080dd712c3ee34e1f938b80bbbbda54a26d64abc
Fixing metrics
- all counters cached globally
- metriccache not anymore stored in Metrics instance map
- metriccache can be always generated from scratch due global counter cache
- metriccache locking to awoid simultaneous read and write

Change-Id: I0bf111b4d0cea7d9fae8a37aa395720dff464437
Signed-off-by: Juha Hyttinen <juha.hyttinen@nokia.com>
pkg/xapp/metrics.go
pkg/xapp/metrics_test.go