Skip to content

Include 5xx responses in default HTTP client error statuses#11156

Draft
saravadeo wants to merge 1 commit intoDataDog:masterfrom
saravadeo:fix/http-client-error-statuses-5xx
Draft

Include 5xx responses in default HTTP client error statuses#11156
saravadeo wants to merge 1 commit intoDataDog:masterfrom
saravadeo:fix/http-client-error-statuses-5xx

Conversation

@saravadeo
Copy link
Copy Markdown
Contributor

@saravadeo saravadeo commented Apr 18, 2026

Fixes #10245

Default DEFAULT_HTTP_CLIENT_ERROR_STATUSES now includes HTTP 5xx so outbound client spans and downstream metrics treat server errors as span errors unless overridden via DD_TRACE_HTTP_CLIENT_ERROR_STATUSES / DD_HTTP_CLIENT_ERROR_STATUSES.

@saravadeo saravadeo force-pushed the fix/http-client-error-statuses-5xx branch from 937c00a to 2206ee2 Compare April 18, 2026 04:21
Default client error range was 4xx only, so downstream HTTP spans did not
mark 5xx responses as errors. Align defaults with server-side semantics by
treating 500-599 as errors unless overridden.

Fixes DataDog#10245
@saravadeo saravadeo force-pushed the fix/http-client-error-statuses-5xx branch from 2206ee2 to 876a5a1 Compare April 18, 2026 04:22
@saravadeo
Copy link
Copy Markdown
Contributor Author

I don’t have permission to add labels on this repo. Could a maintainer please add the appropriate comp: / inst: and type: labels per CONTRIBUTING (this change is user-facing default behavior for HTTP client error statuses). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update DEFAULT_HTTP_CLIENT_ERROR_STATUSES to include 5xx status codes

1 participant