Attributes
| tracers | [R] |
Public Class methods
new(*tracers)
[show source]
# File lib/httpx/plugins/tracing.rb 16 def initialize(*tracers) 17 @tracers = tracers.flat_map do |tracer| 18 case tracer 19 when Wrapper 20 tracer.tracers 21 else 22 tracer 23 end 24 end.uniq 25 end
Public Instance methods
freeze()
[show source]
# File lib/httpx/plugins/tracing.rb 31 def freeze 32 @tracers.each(&:freeze).freeze 33 super 34 end
merge(tracer)
[show source]
# File lib/httpx/plugins/tracing.rb 27 def merge(tracer) 28 Wrapper.new(*@tracers, *tracer.tracers) 29 end