-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: total order constraint on span.status= #805
Conversation
Excon is doing something fishy with span status here, probably needs to be updated. Lines 82 to 84 in 353c381
|
If instrumentation is not supposed to set an OK status anymore we probably need to look for uses of this too opentelemetry-ruby/api/lib/opentelemetry/trace/util/http_to_status.rb Lines 11 to 24 in 353c381
|
I think we need to 👀 the semantic conventions for HTTP instrumentation - I think there was a requirement to set the span status based on the response code. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
See open-telemetry/opentelemetry-specification#1685
BREAKING CHANGES
OpenTelemetry::Trace::Util::HttpToStatus
module has been removed. It previously contributed thehttp_to_status
class method to theStatus
class. That method incorrectly set the span status toOK
for response codes in the range100..399
. Calls to that method should be changed as follows:Status.new(code, description:)
initializer has been hidden in favour of simpler constructors for each status code:Status.ok
,Status.error
andStatus.unset
. Each constructor takes an optionaldescription
.