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

Instance Method Details

#content_typeObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/datadog/core/encoding.rb', line 11

def content_type
  raise NotImplementedError
end

#encode(_) ⇒ Object

Serializes a single trace into a String suitable for network transmission.

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/datadog/core/encoding.rb', line 21

def encode(_)
  raise NotImplementedError
end

#join(encoded_elements) ⇒ Object

Concatenates a list of elements previously encoded by #encode.

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/datadog/core/encoding.rb', line 16

def join(encoded_elements)
  raise NotImplementedError
end