Open benjamingr opened 5 years ago
We are in the transition phase to move out from request
library.
We are in the transition phase to move out from
request
library.
Hi, any progress on that?
@yaircohendev this SDK in general is pretty neglected, uses loggers one shouldn't (bunyan/winston) instead of the modern ones (like pino), uses RxJS needlessly, doesn't clean up properly and a bunch of other things that modern JS code bases have generally stopped doing.
It might be a good idea to either deprecate this SDK (and direct people towards something like pino-elasticsearch and the ES API and provide a proxy/security for browser usage or alternatively fix it to be at a more industry-standard place.
Coralogix logger uses
request
internally - and.json
, this tries toJSON.parse
inside atry/catch
internally which triggers "pause on all exceptions" a ton of times:This can be fixed in several ways:
/api/v1/logs
(for example by returning"OK"
and notOK
)..text()
and not.json
.request
for this and usinghttp
internally.