FEATURE: add instrumentation for all external net calls

This commit is contained in:
Sam
2018-02-21 15:19:59 +11:00
parent 5c40ae9e63
commit ca1a3f37e3
3 changed files with 53 additions and 1 deletions

View File

@ -24,6 +24,14 @@ class Middleware::RequestTracker
MethodProfiler.patch(Redis::Client, [
:call, :call_pipeline
], :redis)
MethodProfiler.patch(Net::HTTP, [
:request
], :net)
MethodProfiler.patch(Excon::Connection, [
:request
], :net)
@patched_instrumentation = true
end