Module: Datadog::Encoding::Encoder

Includes:
Kernel
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

Instance Method Details

#content_typeObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/ddtrace/encoding.rb', line 12

def content_type
  raise NotImplementedError
end

#encode(_) ⇒ Object

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

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/ddtrace/encoding.rb', line 22

def encode(_)
  raise NotImplementedError
end

#join(encoded_elements) ⇒ Object

Concatenates a list of elements previously encoded by +#encode+.

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/ddtrace/encoding.rb', line 17

def join(encoded_elements)
  raise NotImplementedError
end