Skip to content

add monotonic counter uint meter type#105

Merged
copperlight merged 1 commit intoNetflix:mainfrom
copperlight:mono-counters-uint
Jun 15, 2024
Merged

add monotonic counter uint meter type#105
copperlight merged 1 commit intoNetflix:mainfrom
copperlight:mono-counters-uint

Conversation

@copperlight
Copy link
Copy Markdown
Collaborator

This change is a companion to the fix for monotonic counter implementations in spectatord.

Netflix-Skunkworks/spectatord#90

The original monotonic counter (C) was always intended to be used for the case where a monotonic data source needs to be transformed into base units for recording data. For example, transforming nanoseconds into seconds. This requires division, which results in floats.

There is a valid use case for handling uints in monotonic counters, if the data source is already in a base unit, such as bytes. Thus, a new meter type U is added to spectatord which supports this use case.

This change is a companion to the fix for monotonic counter implementations in
spectatord.

Netflix-Skunkworks/spectatord#90

The original monotonic counter (`C`) was always intended to be used for the
case where a monotonic data source needs to be transformed into base units
for recording data. For example, transforming nanoseconds into seconds. This
requires division, which results in floats.

There is a valid use case for handling uints in monotonic counters, if the
data source is already in a base unit, such as bytes. Thus, a new meter type
`U` is added to spectatord which supports this use case.
@copperlight copperlight merged commit 0b4efd6 into Netflix:main Jun 15, 2024
fvallenilla pushed a commit to fvallenilla/spectator-cpp that referenced this pull request Aug 4, 2024
This change is a companion to the fix for monotonic counter implementations in
spectatord.

Netflix-Skunkworks/spectatord#90

The original monotonic counter (`C`) was always intended to be used for the
case where a monotonic data source needs to be transformed into base units
for recording data. For example, transforming nanoseconds into seconds. This
requires division, which results in floats.

There is a valid use case for handling uints in monotonic counters, if the
data source is already in a base unit, such as bytes. Thus, a new meter type
`U` is added to spectatord which supports this use case.
@copperlight copperlight deleted the mono-counters-uint branch November 22, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant