Class: Zipkin::Span

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

Constant Summary collapse

TRACE_ID =
1
NAME =
3
ID =
4
PARENT_ID =
5
ANNOTATIONS =
6
BINARY_ANNOTATIONS =
8
DEBUG =
9
FIELDS =
{
  TRACE_ID => {:type => ::Thrift::Types::I64, :name => 'trace_id'},
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  ID => {:type => ::Thrift::Types::I64, :name => 'id'},
  PARENT_ID => {:type => ::Thrift::Types::I64, :name => 'parent_id', :optional => true},
  ANNOTATIONS => {:type => ::Thrift::Types::LIST, :name => 'annotations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::Annotation}},
  BINARY_ANNOTATIONS => {:type => ::Thrift::Types::LIST, :name => 'binary_annotations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::BinaryAnnotation}},
  DEBUG => {:type => ::Thrift::Types::BOOL, :name => 'debug', :default => false, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



109
# File 'lib/zipkin_query/zipkin_core_types.rb', line 109

def struct_fields; FIELDS; end

#validateObject



111
112
# File 'lib/zipkin_query/zipkin_core_types.rb', line 111

def validate
end