Skip to content

SDK truncation logic #958

@kahest

Description

@kahest

Review implementation for any truncation of event data (e.g., error titles, stack frames, local variables). Remove truncation where possible so that Relay handles length limits and marks truncated content clearly for users.

  • Keep only essential truncation needed to prevent issues e.g. such as infinite or near-infinite recursion if applicable
  • Verify Relay’s configured limits before making changes, and test to ensure ingestion works as expected (exception type field example)

In scope: any code paths where data is shortened in a way that hides useful information for debugging

Out of scope: Limits explicitly decided in the past (e.g., 1000 spans per transaction, max breadcrumbs, request body truncation).

See also: https://develop.sentry.dev/sdk/data-model/envelopes/#size-limits

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions