-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add support for logging to AWS Kinesis (basically a hosted Kafka) #111
Conversation
Looks good, thanks for the contribution! |
Any idea about these test failures? They seem unrelated to the patch. Also, is it ok to just add failed records back to the queue this way when the buffer has sync=true? No deadlock risk? Or should I only add them back to the queue when sync=false? |
The test failures are due to a development dependency issue with the latest release of Nokogiri. It's resolved in master, so if you rebase the build failures should go away. It should be safe to add records back to the buffer this way. Even with sync=true, the exact same buffering mechanism is in use. The only difference is that a flush is forced every time a message is written. While a flush is in progress, messages can still come into the buffer and get queued up. They will get wait there and get dequeued during the next round of flushing. I think this is good to go, and hope to merge/release it this week. |
Resolve nokogiri development dependency issue
0111eaf
to
987a2ff
Compare
Ok, rebased and updated PR. |
Current coverage is 91.48% (diff: 92.95%)@@ master #111 diff @@
==========================================
Files 59 61 +2
Lines 1408 1479 +71
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 1286 1353 +67
- Misses 122 126 +4
Partials 0 0
|
I noticed something missing from this device which is present in other devices. If there is an unrecoverable connection error, other devices will call |
It would also be a good idea to override |
I'll take a look and update the PR first thing in the morning. |
Released in 0.22.0. |
Hey guys, @aianus, @dwbutler If I set sync: true, is this supposed to start pushing all logging to my kinesis stream? If so, I'm not able to get it working locally on my dev machine. I can create a LogStashLogger::Device::Kinesis object in rails console and call :write_one to my stream, and that works fine. Wondering what Im doing wrong. Thanks, Ash my development.rb file:
|
@ashramsey That's unusual. Yes, the expected behavior when setting |
https://aws.amazon.com/kinesis/streams/