Skip to content

How to discard over limited data on span #1440

@XSAM

Description

@XSAM

specification/trace/sdk.md says in Span Limits section:

To protect against such errors, SDK Spans MAY discard attributes, links, and events that would increase the number of elements of each collection beyond the configured limit.

I feel like it is not very clear that how we should discard this data. Should we discard the oldest data that added in the first place or the new data that we want to append?

This behavior that how to discard data should be consistent with all the SDK, which will influence spans' final result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec:traceRelated to the specification/trace directory

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions