Skip to content

Oversized logs are completely dropped #426

@aabmass

Description

@aabmass

If you send a log that would exceed Cloud Logging's 256kb limit, the API will reject the log. This is pretty common with GenAI prompt/response capturing where the log can become huge. This is unfortunate because you lose everything, including labels. I'm not sure if this fails the whole batch of logs.

Some workaround ideas

  1. do nothing and let them drop
  2. unset the jsonPayload if it's too large
  3. truncate the textPayload if it's too large
  4. add a new log entry with just the labels and a payload indicating that the large body was dropped

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions