Class: Garage::Tracer::AwsXrayTracer

Inherits:
Object
  • Object
show all
Defined in:
lib/garage/tracer.rb

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.serviceObject

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

Yields:

  • (new)


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