Skip to content

Commit

Permalink
[rack] avoid exception obfuscation if the request_span is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Palazzetti committed Dec 14, 2017
1 parent 1874bde commit 12ca7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ddtrace/contrib/rack/middlewares.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def call(env)
# catch exceptions that may be raised in the middleware chain
# Note: if a middleware catches an Exception without re raising,
# the Exception cannot be recorded here.
request_span.set_error(e)
request_span.set_error(e) unless request_span.nil?
raise e
ensure
# the source of truth in Rack is the PATH_INFO key that holds the
Expand Down

0 comments on commit 12ca7bc

Please sign in to comment.