Class: Appdash::CollectPacket

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

Overview

Message Fields

Defined Under Namespace

Classes: Annotation, SpanID

Class Method Summary collapse

Class Method Details

.encode(event, id) ⇒ Object



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

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