hypertrace / hypertrace-collector

OpenTelemetry collector distribution for Hypertrace platform
6 stars 5 forks source link

fix: cure span logs by cutting them by half every time we make a pass. #87

Closed tim-mwangi closed 2 years ago

tim-mwangi commented 2 years ago

Description

There's a chance that when the spans are being converted to kafka messages, they will still be over 1MiB since the log events in the span are not cured. We fix this by removing half the log messages but maintain the distribution over time of the messages i.e in every pass drop the odd-indexed logs effectively retaining half of them.

Testing

Unit tests

Checklist: