You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: