Module: Datadog::Core::Encoding::Encoder Abstract
- Included in:
- JSONEncoder, MsgpackEncoder
- Defined in:
- lib/datadog/core/encoding.rb
Overview
This module is abstract.
Encoder interface that provides the logic to encode traces and service
Instance Method Summary collapse
-
#content_type ⇒ Object
:nocov:.
-
#decode(_) ⇒ Object
Deserializes a value serialized with #encode.
-
#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
:nocov:
14 15 16 |
# File 'lib/datadog/core/encoding.rb', line 14 def content_type raise NotImplementedError end |
#decode(_) ⇒ Object
Deserializes a value serialized with #encode. This method is used for debugging purposes.
30 31 32 |
# File 'lib/datadog/core/encoding.rb', line 30 def decode(_) raise NotImplementedError end |
#encode(_) ⇒ Object
Serializes a single trace into a String suitable for network transmission.
24 25 26 |
# File 'lib/datadog/core/encoding.rb', line 24 def encode(_) raise NotImplementedError end |
#join(encoded_elements) ⇒ Object
Concatenates a list of elements previously encoded by #encode
.
19 20 21 |
# File 'lib/datadog/core/encoding.rb', line 19 def join(encoded_elements) raise NotImplementedError end |