-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduce ctats subpackage for metrics #80
Conversation
df60632
to
59102b6
Compare
a66efaa
to
1515bdb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -0,0 +1,144 @@ | |||
package ctats |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about cstats
instead of ctats
? Rolls off the tongue easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
honestly I don't particularly like any of these. But for the life of me I haven't been able to come up with something better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am okay with ctats
too. Not worth worrying so much, we'll get used to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, no, what I mean is that I'd love to change the name. cstats
is probably better, yes. I just wish there were a clearly perfect name.
59102b6
to
3e1edf0
Compare
ctats (yes, pronounced "stats"; what, do you have a better name? Please, please tell me if you do...) is the OTEL metrics wrapper for clues. It seeks to reduce the current metrics interface into two basic steps: 1/ recording metrics. 2/ optional pre-registration of data-points to record. Most of the API is designed towards simplification of the OTEL interface into something that's approachable for generic development. This introduction leaves a few things to the side for later development: - unit testing (I should have this in place before the PR is complete) - multi-thread environment safety - maybe auto-initialization of system runtime metrics (cpu, memory, gc, etc)
1515bdb
to
72b7e4c
Compare
add unit tests for the ctats package. Found a bug along the way where we weren't adding entries into the map for ad-hoc counter declarations.
ctats (yes, pronounced "stats"; what, do you have a better name? Please, please tell me if you do...) is the OTEL metrics wrapper for clues. It seeks to reduce the current metrics interface into two basic steps: 1/ recording metrics. 2/ optional pre-registration of data-points to record.
Most of the API is designed towards simplification of the OTEL interface into something that's approachable for generic development. This introduction leaves a few things to the side for later development: