Class: SolidApm::SpanSubscriber::NetHttp

Inherits:
Base
  • Object
show all
Defined in:
app/models/solid_apm/span_subscriber/net_http.rb

Defined Under Namespace

Modules: NetHttpInstrumentationPrepend

Constant Summary collapse

PATTERN =
'request.net_http'

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

backtrace_cleaner, #clean_trace, clean_trace, inherited, subscribe!

Class Method Details

.subscribeObject



12
13
14
15
16
17
# File 'app/models/solid_apm/span_subscriber/net_http.rb', line 12

def self.subscribe
  if defined?(::Net::HTTP)
    ::Net::HTTP.prepend(NetHttpInstrumentationPrepend)
    super
  end
end

Instance Method Details

#summary(payload) ⇒ Object



8
9
10
# File 'app/models/solid_apm/span_subscriber/net_http.rb', line 8

def summary(payload)
  payload
end