[superlog] Don't mark ingest.queue_send span as ERROR for empty/oversized client bodies#150
Open
superlog-app[bot] wants to merge 1 commit into
Open
[superlog] Don't mark ingest.queue_send span as ERROR for empty/oversized client bodies#150superlog-app[bot] wants to merge 1 commit into
superlog-app[bot] wants to merge 1 commit into
Conversation
…ized client bodies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The proxy's
ingest.queue_sendOTel span was marking ALL exceptions as ERROR before rethrowing, includingEmptyBodyErrorandPayloadTooLargeError. These are expected client-side conditions (empty OTLP payload, body over the size cap) that the outerhandleIngestBodyErrorhandler converts into correct 4xx HTTP responses — so no data is lost and the client is informed. The ERROR span label was a false positive that caused Superlog's worker to fingerprint each occurrence as an issue and open recurring incidents.The pre-auth
Content-Length: 0guard added in #129 fast-rejects the most common form of empty bodies, but explicitly does not cover chunked/undeclared-length empty bodies, which still reachcaptureBodyand trigger this path.The fix skips
recordException/setStatus(ERROR)on theingest.queue_sendspan when the error isEmptyBodyErrororPayloadTooLargeError. Unexpected server-side errors still record as ERROR as before. An alternative approach would be to silence the incident entirely via Superlog's noise-classification feature, but fixing the span label is cleaner and avoids masking real future errors that happen to share the same span name.Incident on Superlog
Was this PR helpful? Leave feedback — goes straight to the Superlog team.
Summary by cubic
Stop marking the
ingest.queue_sendOTel span as ERROR for empty or oversized client bodies to eliminate false error noise and recurring incidents while keeping 4xx paths clean.recordExceptionandsetStatus(ERROR)forEmptyBodyErrorandPayloadTooLargeError.Content-Length: 0check.Written for commit 5966cd6. Summary will update on new commits.