Class: Appdash::CollectPacket

Inherits:
ProtocolBuffers::Message
  • Object
show all
Defined in:
lib/appdash/collector.pb.rb,
lib/appdash/wire.rb,
lib/appdash/collector.pb.rb

Overview

forward declarations

Defined Under Namespace

Classes: Annotation, SpanID

Class Method Summary collapse

Class Method Details

.build(event, id) ⇒ Object



6
7
8
9
# File 'lib/appdash/wire.rb', line 6

def self.build(event, id)
  wired = SpanID.new(trace: id.trace, span: id.span, parent: id.parent)
  new(spanid: wired, annotation: event.to_a)
end