Class: Brut::FrontEnd::Handlers::InstrumentationHandler::TraceParent
- Inherits:
-
Object
- Object
- Brut::FrontEnd::Handlers::InstrumentationHandler::TraceParent
- Defined in:
- lib/brut/front_end/handlers/instrumentation_handler.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#as_carrier ⇒ Object
-
#initialize(value) ⇒ TraceParent
constructor
A new instance of TraceParent.
Constructor Details
#initialize(value) ⇒ TraceParent
Returns a new instance of TraceParent.
61 62 63 |
# File 'lib/brut/front_end/handlers/instrumentation_handler.rb', line 61 def initialize(value) @value = value end |
Class Method Details
.from_header(header_value) ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'lib/brut/front_end/handlers/instrumentation_handler.rb', line 51 def self.from_header(header_value) if header_value.nil? return nil elsif header_value.kind_of?(self) return header_value else return TraceParent.new(header_value) end end |
Instance Method Details
#as_carrier ⇒ Object
65 |
# File 'lib/brut/front_end/handlers/instrumentation_handler.rb', line 65 def as_carrier = { "traceparent" => @value } |