Class: FinagleThrift::RequestHeader

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/finagle-thrift/thrift/tracing_types.rb

Overview

RequestHeader defines headers for the request. These carry the span data, and a flag indicating whether the request is to be debugged.

Constant Summary collapse

TRACE_ID =
1
SPAN_ID =
2
PARENT_SPAN_ID =
3
SAMPLED =
5
CLIENT_ID =
6
FLAGS =
7
CONTEXTS =
8
DEST =
9
DELEGATIONS =
10
FIELDS =
{
  TRACE_ID => {:type => ::Thrift::Types::I64, :name => 'trace_id'},
  SPAN_ID => {:type => ::Thrift::Types::I64, :name => 'span_id'},
  PARENT_SPAN_ID => {:type => ::Thrift::Types::I64, :name => 'parent_span_id', :optional => true},
  SAMPLED => {:type => ::Thrift::Types::BOOL, :name => 'sampled', :optional => true},
  CLIENT_ID => {:type => ::Thrift::Types::STRUCT, :name => 'client_id', :class => FinagleThrift::ClientId, :optional => true},
  FLAGS => {:type => ::Thrift::Types::I64, :name => 'flags', :optional => true},
  CONTEXTS => {:type => ::Thrift::Types::LIST, :name => 'contexts', :element => {:type => ::Thrift::Types::STRUCT, :class => FinagleThrift::RequestContext}},
  DEST => {:type => ::Thrift::Types::STRING, :name => 'dest', :optional => true},
  DELEGATIONS => {:type => ::Thrift::Types::LIST, :name => 'delegations', :element => {:type => ::Thrift::Types::STRUCT, :class => FinagleThrift::Delegation}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



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

def validate
end