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。
Proposal
Remote Write: Error
storage.ErrTooOldSampleis 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 Falsewhen client push a too old sample, it will retry。