Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Treat gauge.update() parameter as new value, not delta #463

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

mdouaihy
Copy link
Contributor

@mdouaihy mdouaihy commented Jun 21, 2018

Which problem is this PR solving?

InMemoryMetricsFactory gauge wrongly update its value.
Resolves #459.

Description of the change

In InMemoryMetricsFactory, upon updating the gauge, the argument
should be considered as the new value and not a variation to
the previous one.

Signed-off-by: Mehrez Douaihy [email protected]

In InMemoryMetricsFactory, upon updating the gauge, the argument
should be considered as the new value and not a variation to
the previous one.

Signed-off-by: Mehrez Douaihy <[email protected]>
@codecov
Copy link

codecov bot commented Jun 21, 2018

Codecov Report

Merging #463 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #463   +/-   ##
=========================================
  Coverage     88.24%   88.24%           
  Complexity      488      488           
=========================================
  Files            63       63           
  Lines          1846     1846           
  Branches        240      240           
=========================================
  Hits           1629     1629           
  Misses          139      139           
  Partials         78       78
Impacted Files Coverage Δ Complexity Δ
.../jaegertracing/metrics/InMemoryMetricsFactory.java 95% <100%> (ø) 16 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 331bc04...14f952e. Read the comment docs.

@yurishkuro yurishkuro changed the title Fix bug described in (#459) Treat gauge.update() parameter as absolute value, not a delta Jun 21, 2018
@yurishkuro yurishkuro changed the title Treat gauge.update() parameter as absolute value, not a delta Treat gauge.update() parameter as new value, not delta Jun 21, 2018
@yurishkuro yurishkuro merged commit e76b6a9 into jaegertracing:master Jun 21, 2018
@yurishkuro
Copy link
Member

Thank you for your contribution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants