logger-nodejs icon indicating copy to clipboard operation
logger-nodejs copied to clipboard

Log API calls with Node.js

Results 10 logger-nodejs issues
Sort by recently updated
recently updated
newest added

Add support for custom fields. This introduces breaking changes since the `HttpMessage.send` signature must be modified to accept custom fields. The custom fields themselves should be added to the message...

enhancement

Log client IP address as a custom `X-FORWARDED-FOR` header. See https://github.com/pbojinov/request-ip

enhancement
good first issue

Add message batching to the background submission feature, using NDJSON. We can follow the [logger-go](https://github.com/resurfaceio/logger-go/blob/dev/BaseLogger.go#L102) implementation, in order to keep loggers consistent across languages.

enhancement

Have integration tests for this but not local unit tests

testing

Create middleware for NodeJS lambdas on AWS and other serverless environments.

enhancement
middleware

BaseLogger init should take a timeout argument that is set to a low value by default (5 sec).

enhancement
good first issue

Research and create middleware that works from the client side, to record calls made to a remote API. ``` axios.interceptors.response.use(new AxiosMiddleware(url, rules)); ``` ``` axios.interceptors.response.use((response) => { return response; },...

enhancement
middleware

The example that uses mock implementations in [API.md](https://github.com/resurfaceio/logger-nodejs/blob/master/API.md#logging-http-calls) results in an incomplete message that is ultimately dropped by the Resurface DB. This is due to the `request_url` field [being skipped](https://github.com/resurfaceio/logger-nodejs/blob/master/lib/http_message.js#L44)...

bug

`SharedArrayBuffer` has not been supported [for a while](https://developer.chrome.com/blog/enabling-shared-array-buffer/#history) in all major browsers (unless the resource is [cross-isolated](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements)). Normally this is not an issue for back-end services and the corresponding middleware....

bug

`Content-Encoding` header is set to `deflated` instead of `identity` when `skip_compression` rule is present as part of `options.rules` but not `options` itself. This is not the expected result according to...

bug