logger-nodejs
logger-nodejs copied to clipboard
Log API calls with Node.js
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...
Log client IP address as a custom `X-FORWARDED-FOR` header. See https://github.com/pbojinov/request-ip
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.
Have integration tests for this but not local unit tests
Create middleware for NodeJS lambdas on AWS and other serverless environments.
BaseLogger init should take a timeout argument that is set to a low value by default (5 sec).
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; },...
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)...
`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....
`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...