feat(configuration): Mark 4xx calls as erroneous spans and adapt current instrumentations - #525
Open
CagriYonca wants to merge 1 commit into
Open
feat(configuration): Mark 4xx calls as erroneous spans and adapt current instrumentations#525CagriYonca wants to merge 1 commit into
CagriYonca wants to merge 1 commit into
Conversation
CagriYonca
force-pushed
the
fix-4xx-code
branch
4 times, most recently
from
September 3, 2026 14:54
961f724 to
8caec8c
Compare
…ent instrumentations. Signed-off-by: Cagri Yonca <cagri@ibm.com>
CagriYonca
force-pushed
the
fix-4xx-code
branch
from
September 3, 2026 15:27
8caec8c to
aa5a672
Compare
|
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.



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