Module: Datadog::Encoding::Encoder
- Included in:
- JSONEncoder, MsgpackEncoder
- Defined in:
- lib/ddtrace/encoding.rb
Overview
Encoder interface that provides the logic to encode traces and service
Instance Method Summary collapse
- #content_type ⇒ Object
-
#encode(_) ⇒ Object
Serializes a single trace into a String suitable for network transmission.
-
#join(encoded_elements) ⇒ Object
Concatenates a list of elements previously encoded by
#encode.
Instance Method Details
#content_type ⇒ Object
9 10 11 |
# File 'lib/ddtrace/encoding.rb', line 9 def content_type raise NotImplementedError end |
#encode(_) ⇒ Object
Serializes a single trace into a String suitable for network transmission.
19 20 21 |
# File 'lib/ddtrace/encoding.rb', line 19 def encode(_) raise NotImplementedError end |
#join(encoded_elements) ⇒ Object
Concatenates a list of elements previously encoded by #encode.
14 15 16 |
# File 'lib/ddtrace/encoding.rb', line 14 def join(encoded_elements) raise NotImplementedError end |