gajus / gajus/roarr

Improve message filtering

Open
#63 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
1.1k
Forks
41
PR merge metrics
No merged PRs in 30d

Description

To filter logs currently it is necessary to parse the messages that it passed to `ROARR.write` in JSON format, resulting in a potentially CPU-intensive filtering logic.

My proposal is to pass unserialized message as second parameter to `ROARR.write` to avoid JSON parsing for each log message.

Context: https://github.com/gajus/slonik/issues/277

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the ROARR.write implementation and trace how log messages are serialized and filtered. Define the behavior of the proposed second, unserialized message parameter, then verify that filtering can use it without parsing every JSON message and add tests for the new API behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
backend-api-design, observability-sre
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.