feat: allow users to opt out of internal SDK metrics#143
feat: allow users to opt out of internal SDK metrics#143LukeWinikates merged 4 commits intomasterfrom
Conversation
1c4ac36 to
62d97a9
Compare
This comment was marked as outdated.
This comment was marked as outdated.
LukeWinikates
left a comment
There was a problem hiding this comment.
@suprajanarasimhan what do you think about moving a few of these files into a sub-package to make the organization more obvious:
registry, real_metric_registry, and noop_registry could all move from internal to internal/sdkmetrics or something like that.
Update: I did this. I also moved one more file from package |
|
Thanks a lot for the first round of comments, @LukeWinikates! I think it exposed me to some helpful practices and patterns. |
329f90a to
01210db
Compare
71a4432 to
14e8a36
Compare
- create a no-op registry when not sending internal metrics - simplify repetitive pattern with instrumenting line formatter -> handler with instrumentation
- backfill unit tests for Send* methods on *wavefrontSender - change LineHandler fields to interfaces - fix a bug in trySendWith - rename internalMetricFamily to realSuccessTracker - fix some style spots, some doc strings - add a Flush() method to the internal sdk metric registry, and use it in e2e tests - reformat some long method signatures - add a happy-path test for realRegistry
53d90eb to
f779506
Compare
See #35