Module: Datadog::Encoding::JSONEncoder
Overview
Encoder for the JSON format
Defined Under Namespace
Modules: V2
Constant Summary collapse
- CONTENT_TYPE =
'application/json'.freeze
Class Method Summary collapse
Methods included from Encoder
Class Method Details
.content_type ⇒ Object
39 40 41 |
# File 'lib/ddtrace/encoding.rb', line 39 def content_type CONTENT_TYPE end |
.encode(obj) ⇒ Object
43 44 45 |
# File 'lib/ddtrace/encoding.rb', line 43 def encode(obj) JSON.dump(obj) end |