You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though the status_code is 500, but there is no exception.
I checked the opentelemetry-instrumentation-rack between L81-L82, there is no record_exception even the status is 500. I added request_span.record_exception(Exception.new) if status == 500 between 81 and 82, and rack span can create exception_event.
I tried to produce error from action_view, and the exception was caught in span.
I am wondering is there particular reason or the error should be handled in somewhere else?
Description of the bug
If rails controller has error, then there is no exception_event from span.
For example, below is a sample rails controller, and
create_error
is not defined fromUser
, so it should create errorThe sample span from above call
Even though the status_code is 500, but there is no exception.
I checked the opentelemetry-instrumentation-rack between L81-L82, there is no
record_exception
even thestatus
is 500. I addedrequest_span.record_exception(Exception.new) if status == 500
between 81 and 82, and rack span can create exception_event.I tried to produce error from action_view, and the exception was caught in span.
I am wondering is there particular reason or the error should be handled in somewhere else?
Similar issue I found is open-telemetry/opentelemetry-ruby-contrib#56
Share details about your runtime
Operating system details: Debian GNU/Linux aarch64 GNU/Linux
RUBY_ENGINE: "ruby"
RUBY_VERSION: "3.1.0"
RUBY_DESCRIPTION: "ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [aarch64-linux]"
Share a simplified reproduction if possible
opentelemetry-version
The text was updated successfully, but these errors were encountered: