You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The log product is supposed to primarily use bytes for outcomes. The bytes are calculated when receiving the logs, before any modifications and enrichment done by Relay.
Relay needs to keep track of original received bytes for each log item. The initial size can be calculated from all attributes + the log body.
Calculation is as follows:
String: bytes in UTF8
Integer, Float: 8 bytes
Boolean: 1 byte
To calculate the total size, sum all attribute keys and values (with the above byte sizes) + the log body.
Whenever Relay emits outcomes it should use the calculated size.
Activity
feat(logs): Track accepted bytes per individual log item (#4886)