Setup exception type name with right value
Fix TrackRequest middleware to return status properly
This commit is contained in:
Родитель
d4ee2d8856
Коммит
b0f45edb35
|
@ -52,12 +52,13 @@ module ApplicationInsights
|
|||
:url => request.url
|
||||
}
|
||||
@client.track_request id, start_time, duration, status, success, options
|
||||
[status, headers, response]
|
||||
|
||||
if exception != nil
|
||||
@client.track_exception exception, handled_at: 'Unhandled'
|
||||
raise exception
|
||||
end
|
||||
|
||||
[status, headers, response]
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -87,7 +87,7 @@ module ApplicationInsights
|
|||
details_attributes = {
|
||||
:id => 1,
|
||||
:outer_id => 0,
|
||||
:type_name => exception.class,
|
||||
:type_name => exception.class.name,
|
||||
:message => exception.message,
|
||||
:has_full_stack => exception.backtrace != nil,
|
||||
:stack => (exception.backtrace.join("\n") if exception.backtrace),
|
||||
|
|
Загрузка…
Ссылка в новой задаче