module Datadog::Encoding::Encoder
Encoder
interface that provides the logic to encode traces and service
Public Instance Methods
content_type()
click to toggle source
# File lib/ddtrace/encoding.rb, line 12 def content_type raise NotImplementedError end
encode(_)
click to toggle source
Serializes a single trace into a String suitable for network transmission.
# File lib/ddtrace/encoding.rb, line 22 def encode(_) raise NotImplementedError end
join(encoded_elements)
click to toggle source
Concatenates a list of elements previously encoded by #encode
.
# File lib/ddtrace/encoding.rb, line 17 def join(encoded_elements) raise NotImplementedError end