Class: Trace::Flags

Inherits:
Object
  • Object
show all
Defined in:
lib/finagle-thrift/trace.rb

Overview

there are a total of 64 flags that can be passed down with the various tracing headers at the time of writing only one is used (debug).

Note that using the 64th bit in Ruby requires some sign conversion since Thrift i64s are signed but Ruby won’t do the right thing if you try to set 1 << 64

Constant Summary collapse

EMPTY =

no flags set

0
DEBUG =

the debug flag is used to ensure we pass all the sampling layers and that the trace is stored

1