Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

intercept send out metrics #64

Open
5c077yP opened this issue Apr 28, 2016 · 0 comments
Open

intercept send out metrics #64

5c077yP opened this issue Apr 28, 2016 · 0 comments

Comments

@5c077yP
Copy link

5c077yP commented Apr 28, 2016

Hey,

I would like to intercept the outgoing metrics and for example prevent some of them to be really send. What do you think, would it be ok to directly intercept the internal send function or is that function rather unstable and might change over time ?

My use case is the following: I would like to write a hapi plugin that exposes the statsd client and automatically tracks route calls and timings, but also gives the user the possibility to send custom metrics. Now these statsd metrics could be send to aws cloudwatch and i would like to be able to limit the amount of different metrics that are send out.

So should I just intercept send or would it be possible to add some interception api ? I would like to prepare a PR if you are interested into that ?

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

No branches or pull requests

1 participant