snowplow-incubator / common-streams

Other
1 stars 0 forks source link

Add badrows serializer checking max size #49

Closed pondzix closed 11 months ago

pondzix commented 11 months ago

Each sink provided by common-streams library defines maximum accepted record size:

This PR implements badrow serializer, which makes sure those limits are not exceeded. If limit of bytes is reached, SizeViolation badrow is created with trimmed original payload