Class: FinagleThrift::Span

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/finagle-thrift/thrift/tracing_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 => FinagleThrift::Annotation}},
  BINARY_ANNOTATIONS => {:type => ::Thrift::Types::LIST, :name => 'binary_annotations', :element => {:type => ::Thrift::Types::STRUCT, :class => FinagleThrift::BinaryAnnotation}},
  DEBUG => {:type => ::Thrift::Types::BOOL, :name => 'debug'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



108
# File 'lib/finagle-thrift/thrift/tracing_types.rb', line 108

def struct_fields; FIELDS; end

#validateObject



110
111
# File 'lib/finagle-thrift/thrift/tracing_types.rb', line 110

def validate
end