Method: NewRelic::Agent::DistributedTracePayload#http_safe

Defined in:
lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb

#http_safeString

Encode this payload as a string suitable for passing via an HTTP header.

Returns:

  • (String)

    Payload translated to JSON and encoded for inclusion in headers

[View source]

154
155
156
# File 'lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb', line 154

def http_safe
  NewRelic::Base64.strict_encode64(text)
end