mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: add instrumentation for all external net calls
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user