Class: Zipkin::TimelineAnnotation

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/zipkin_query/zipkin_query_types.rb

Overview

A modified version of the Annotation struct that brings in more information

Constant Summary collapse

TIMESTAMP =
1
VALUE =
2
HOST =
3
SPAN_ID =
4
PARENT_ID =
5
SERVICE_NAME =
6
SPAN_NAME =
7
FIELDS =
{
  TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
  HOST => {:type => ::Thrift::Types::STRUCT, :name => 'host', :class => ::Zipkin::Endpoint},
  SPAN_ID => {:type => ::Thrift::Types::I64, :name => 'span_id'},
  PARENT_ID => {:type => ::Thrift::Types::I64, :name => 'parent_id', :optional => true},
  SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'},
  SPAN_NAME => {:type => ::Thrift::Types::STRING, :name => 'span_name'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



117
# File 'lib/zipkin_query/zipkin_query_types.rb', line 117

def struct_fields; FIELDS; end

#validateObject



119
120
# File 'lib/zipkin_query/zipkin_query_types.rb', line 119

def validate
end