Module: Datadog::Encoding::MsgpackEncoder

Extended by:
Encoder
Defined in:
lib/ddtrace/encoding.rb

Overview

Encoder for the Msgpack format

Constant Summary collapse

CONTENT_TYPE =
'application/msgpack'.freeze

Class Method Summary collapse

Methods included from Encoder

encode_traces

Class Method Details

.content_typeObject



86
87
88
# File 'lib/ddtrace/encoding.rb', line 86

def content_type
  CONTENT_TYPE
end

.encode(obj) ⇒ Object



90
91
92
# File 'lib/ddtrace/encoding.rb', line 90

def encode(obj)
  MessagePack.pack(obj)
end