Skip to content

OTLP Write:Error storage.ErrTooOldSample is now generating HTTP error 500 instead of HTTP error 400, client will retry #16645

Description

@iyacontrol

Proposal

Remote Write: Error storage.ErrTooOldSample is now generating HTTP error 400 instead of HTTP error 500。so the client can not retry。

but for otlp write,storage.ErrTooOldSample is now generating HTTP error 500。

code

for python otlp sdk,
@staticmethod def _retryable(resp: requests.Response) -> bool: if resp.status_code == 408: return True if resp.status_code >= 500 and resp.status_code <= 599: return True return False

when client push a too old sample, it will retry。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions