Interface DistributedTracePayload


public interface DistributedTracePayload
Payload used to connect two services in a distributed system. Use createDistributedTracePayload() to create a payload, and Transaction.acceptDistributedTracePayload(DistributedTracePayload) acceptDistributedTracePayload()} to accept the payload on the second service.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String httpSafe()
    Get the distributed trace payload in base64 encoded JSON String format
    java.lang.String text()
    Get the distributed trace payload in JSON String format.
  • Method Details

    • text

      java.lang.String text()
      Get the distributed trace payload in JSON String format.
      Returns:
      a JSON String representation of the payload, or empty string if distributed_tracing.exclude_newrelic_header is set
    • httpSafe

      java.lang.String httpSafe()
      Get the distributed trace payload in base64 encoded JSON String format
      Returns:
      a base64 encoded JSON String representation of the payload, or empty string if distributed_tracing.exclude_newrelic_header is set