-
Notifications
You must be signed in to change notification settings - Fork 10
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
TES-4800 allow exposing waitForFlush capability #15
TES-4800 allow exposing waitForFlush capability #15
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15 +/- ##
===========================================
- Coverage 93.77% 75.79% -17.99%
===========================================
Files 12 12
Lines 241 252 +11
===========================================
- Hits 226 191 -35
- Misses 15 61 +46
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #15 +/- ##
==========================================
+ Coverage 93.77% 94.44% +0.66%
==========================================
Files 12 12
Lines 241 252 +11
==========================================
+ Hits 226 238 +12
+ Misses 15 14 -1
Continue to review full report at Codecov.
|
This PR addresses an issue where logs are dropped if the Node server is shut-down by exposing an API letting coralogix-logger wait for logs to be sent from the backend. The original issue is very easy to reproduce. You can call:
In tester.ts to see that it's not sent to the backend :] |
Hey, this was supposed to be merged a month ago. You said "3-4" weeks - any update? |
Ping? Another month has passed |
Ok, @amnons77 I feel like your company is friends with my company so the charitable thing would be to give out free advice from a Node core team member who also maintains several open source libraries and breaks stuff myself all the time. For what it's worth, the way this logger is written isn't how you're supposed to write loggers for Node.js. Even if you remove all the deprecated and old APIs the code uses (like request and rxjs) and how much it actually needs those dependencies for (it doesn't, it can be significantly shorter without them) - there are fundamental issues namely:
There are also some quick wins you can do, probably use a reasonably fast library for writing stuff and a reasonably fast JSON library. Those are dependencies that would actually be justified IMO. If you start with |
Hey,
As discussed on email.
Cheers and love,
Benji and Moshe