Class: Garage::Tracer::AwsXrayTracer
- Inherits:
-
Object
- Object
- Garage::Tracer::AwsXrayTracer
- Defined in:
- lib/garage/tracer.rb
Class Attribute Summary collapse
-
.service ⇒ Object
Returns the value of attribute service.
Class Method Summary collapse
Instance Method Summary collapse
- #inject_trace_context(header) ⇒ Object
- #record_http_request(method, url, user_agent) ⇒ Object
- #record_http_response(status, content_length) ⇒ Object
Class Attribute Details
.service ⇒ Object
Returns the value of attribute service.
46 47 48 |
# File 'lib/garage/tracer.rb', line 46 def service @service end |
Class Method Details
.start {|new| ... } ⇒ Object
49 50 51 |
# File 'lib/garage/tracer.rb', line 49 def self.start(&block) yield new end |
Instance Method Details
#inject_trace_context(header) ⇒ Object
53 54 55 |
# File 'lib/garage/tracer.rb', line 53 def inject_trace_context(header) header.merge('X-Aws-Xray-Name' => self.class.service) end |
#record_http_request(method, url, user_agent) ⇒ Object
57 58 |
# File 'lib/garage/tracer.rb', line 57 def record_http_request(method, url, user_agent) end |
#record_http_response(status, content_length) ⇒ Object
60 61 |
# File 'lib/garage/tracer.rb', line 60 def record_http_response(status, content_length) end |