fluent / fluent/fluent-logger-forward-node

Proposal: Ability to configure msgpack encoding, e.g. to ignore undefined properties

Open
#40 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Hi 👋

Would it be helpful to anyone else if it were possible to configure the msgpack encoder.

For example msgpack has the option to `ignoreUndefinedProperties`, which is desirable in certain circumstances, eg. to reduce bandwidth or storage requirements.

Msgpack options could (for example) be provided with the client configuration. Something like:

```js
const client = new FluentClient('tag', {
msgpackOptions: {
maxDepth: 42,
ingnoreUndefined: true,
// other msgpack options at https://github.com/msgpack/msgpack-javascript/blob/main/src/Encoder.ts#L15
}
}
```

Would be happy to throw something together if it's interesting.

Thanks in advance

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.