Class: FinagleThrift::RequestHeader
- Inherits:
-
Object
- Object
- FinagleThrift::RequestHeader
- 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
- 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} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
154 |
# File 'lib/finagle-thrift/thrift/tracing_types.rb', line 154 def struct_fields; FIELDS; end |
#validate ⇒ Object
156 157 |
# File 'lib/finagle-thrift/thrift/tracing_types.rb', line 156 def validate end |