Class: Trace::BinaryAnnotation

Inherits:
Object
  • Object
show all
Defined in:
lib/zipkin-tracer/trace.rb

Overview

This class is defined in finagle-thrift. We are adding extra methods here

Constant Summary collapse

SERVER_ADDRESS =
'sa'.freeze
URI =
'http.uri'.freeze
STATUS =
'http.status'.freeze
LOCAL_COMPONENT =
'lc'.freeze

Instance Method Summary collapse

Instance Method Details

#to_hObject



89
90
91
92
93
94
95
# File 'lib/zipkin-tracer/trace.rb', line 89

def to_h
  {
    key: @key,
    value: @value,
    endpoint: host.to_h
  }
end