Class: Garage::Tracer::NullTracer
- Inherits:
-
Object
- Object
- Garage::Tracer::NullTracer
- Defined in:
- lib/garage/tracer.rb
Overview
Any tracers must have ‘.start` to start tracing context and:
- `#inject_trace_context` to add tracing context to the given request header.
- `#record_http_request` to record http request in tracer.
- `#record_http_response` to record http response in tracer.
Class Method Summary collapse
Instance Method Summary collapse
- #inject_trace_context(header) ⇒ Hash
- #record_http_request(method, url, user_agent) ⇒ nil
- #record_http_response(status, content_length) ⇒ Object
Class Method Details
.start {|new| ... } ⇒ Object
21 22 23 |
# File 'lib/garage/tracer.rb', line 21 def self.start(&block) yield new end |
Instance Method Details
#inject_trace_context(header) ⇒ Hash
27 28 29 |
# File 'lib/garage/tracer.rb', line 27 def inject_trace_context(header) header end |
#record_http_request(method, url, user_agent) ⇒ nil
35 36 |
# File 'lib/garage/tracer.rb', line 35 def record_http_request(method, url, user_agent) end |
#record_http_response(status, content_length) ⇒ Object
40 41 |
# File 'lib/garage/tracer.rb', line 40 def record_http_response(status, content_length) end |