Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

add metric type and additional information to /metrics endpoint #50

Merged
merged 2 commits into from
Aug 15, 2019

Conversation

oryband
Copy link

@oryband oryband commented Aug 15, 2019

up until now metrics didn't include the type (counter, gauge, timer histogram, etc.)
this commit adds a new "type" field to every metrics object returned in
/metrics endpoint.

furthermore it also adds a "duration_unit" field for timer metrics.
since timers uses golang's stdlib Time object, the unit is in nanoseconds.

This commits reintroduces changes which were reverted in commit 6c37738,
i reverted this for readability purposes since that commit didn't have a
meaningful commit message and didn't explain what features it introduced.

i'm reintroducing it now without but with a proper explanation.
it's exactly the same feature as before

This reverts commit cae6dcf.
up until now metrics didn't include the type (counter, gauge, timer histogram, etc.)
this commit adds a new "type" field to every metrics object returned in
/metrics endpoint.

furthermore it also adds a "duration_unit" field for timer metrics.
since timers uses golang's stdlib Time object, the unit is in nanoseconds.

This commits reintroduces changes which were reverted in commit 6c37738,
i reverted this for readability purposes since that commit didn't have a
meaningful commit message and didn't explain what features it introduced.

i'm reintroducing it now without but with a proper explanation.
it's exactly the same feature as before
@oryband oryband requested a review from Yogev911 August 15, 2019 10:18
@oryband oryband merged commit d32561b into master Aug 15, 2019
@oryband oryband deleted the fix-test-commit branch August 15, 2019 10:19
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.

None yet

1 participant