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

I'd like to add a mechanism for keeping track of the async hooks #20

Open
zackWitherspoon opened this issue Apr 29, 2019 · 0 comments
Open

Comments

@zackWitherspoon
Copy link

Upon me trying to implement this project for myself with my companies elasticsearch, I ran into the issue of not being able to simply use the log.WHATEVER statement with a NewAsyncElasticHook. There was no built in method of keeping track of the number of messages still waiting to get sent, etc. so my project would always finish with logs not being sent.

So I'm fairly new to Go, but I think the way I'd like to tackle this is to implement a background channel that would be created upon the NewAsyncElasticHook that would send the logs that were gathered every 0.5 or whatever and the user could wait with a time limit on the channel to process all the logs and exit out if the time limit was reached.

What do you think? Worth implementing?

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

1 participant