Skip to content

Account Log Bytes #4824

Closed
Closed

Description

@Dav1dde

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.

See also: https://www.notion.so/sentry/Log-outcomes-log-counts-vs-ingested-bytes-vs-stored-bytes-2078b10e4b5d809d8d05fdfd59905863#2078b10e4b5d8067a45eed4520f694bf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions