Skip to content

feat(configuration): Mark 4xx calls as erroneous spans and adapt current instrumentations - #525

Open
CagriYonca wants to merge 1 commit into
masterfrom
fix-4xx-code
Open

feat(configuration): Mark 4xx calls as erroneous spans and adapt current instrumentations#525
CagriYonca wants to merge 1 commit into
masterfrom
fix-4xx-code

Conversation

@CagriYonca

@CagriYonca CagriYonca commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Adds a configurable option to mark HTTP 4xx responses as erroneous spans, and adapts the excon, net-http, and rest-client instrumentations to respect this setting.

Changes:

New http_4xx_as_error config option in config.rb
Instana::Util::Http helper for shared HTTP error classification logic
Updated excon and net-http instrumentation to use the new helper
Full test coverage across all affected instrumentations and the config/util layer

@CagriYonca
CagriYonca requested a review from a team September 3, 2026 13:46
@CagriYonca CagriYonca self-assigned this Sep 3, 2026
@CagriYonca
CagriYonca force-pushed the fix-4xx-code branch 4 times, most recently from 961f724 to 8caec8c Compare September 3, 2026 14:54
…ent instrumentations.

Signed-off-by: Cagri Yonca <cagri@ibm.com>
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

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.

1 participant