Skip to content
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

Emit Telemetry events #385

Open
stephanos opened this issue Nov 13, 2019 · 5 comments
Open

Emit Telemetry events #385

stephanos opened this issue Nov 13, 2019 · 5 comments

Comments

@stephanos
Copy link

stephanos commented Nov 13, 2019

Hello!

Telemetry is getting traction now that it's included in Phoenix and Ecto out-of-the-box. What's your stance on emitting telemetry events from this library? Would you welcome contributions?

It would allow users of this library to capture important metrics and send them to their monitoring solution. This way, we save everyone the time to instrument their own usage of this library.

Stephan

@stephanos
Copy link
Author

Please let me know if you'd be open to merging anything like this so I know my time is well spent :)

@bjhaid
Copy link
Member

bjhaid commented Dec 6, 2019

I think emitting metrics from kafka_ex is a good idea, maybe start with a simple PoC to engage @dantswain and @joshuawscott interests

@dantswain
Copy link
Collaborator

I think this is a great idea. My only concerns are

  • keep it general enough that any emitter can be used (i think Phoenix and ecto do a good job with this, essentially you just call a callback)
  • don’t impact performance too much
  • exactly what should we emit telemetry based on? There’s quite a lot going on in the client, it could be very chatty
  • id prefer to not have to implement this twice (legacy and kayrock clients) if possible

@stephanos
Copy link
Author

Thank you, I'll put this on my To Do list then :)
Feel free to close this issue if you want, I'll create a PR once I have something presentable.

@dimitarvp
Copy link

Did anything materialize from this idea? I can't find any mentions of "telemetry" in the code.

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

No branches or pull requests

4 participants