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
Class Method Details
.content_type ⇒ Object
56 57 58 |
# File 'lib/ddtrace/encoding.rb', line 56 def content_type CONTENT_TYPE end |
.encode(obj) ⇒ Object
60 61 62 |
# File 'lib/ddtrace/encoding.rb', line 60 def encode(obj) MessagePack.pack(obj) end |