criblio / appscope

Gain observability into any Linux command or application with no code modification
https://appscope.dev
Apache License 2.0
268 stars 33 forks source link

Set a larger (1mb) buffer size for each event in cli reader (#201) #1604

Closed seanvaleo closed 1 year ago

seanvaleo commented 1 year ago

When some of the CLI commands read in events, we see the error error reading events: bufio.Scanner: token too long. I increased the buffer size for the scanner to 1mb which seems more than appropriate for a single event. This resolves the issue in cases that I tested (events, flows).

Fixes #201