com.newrelic.api.agent.DistributedTracePayload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-api Show documentation
Show all versions of newrelic-api Show documentation
New Relics's Java Api Jar.
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.api.agent;
/**
* Payload used to connect two services in a distributed system.
*
* @deprecated Instead, use the Distributed Tracing API {@link Transaction#insertDistributedTraceHeaders(Headers)} to create a
* distributed tracing payload and {@link Transaction#acceptDistributedTraceHeaders(TransportType, Headers)} to link the services
* together.
*/
@Deprecated
public interface DistributedTracePayload {
/**
* Get the distributed trace payload in JSON String format.
*
* @return a JSON String representation of the payload, or empty string if distributed_tracing.exclude_newrelic_header is set
*/
String text();
/**
* Get the distributed trace payload in base64 encoded JSON String format
*
* @return a base64 encoded JSON String representation of the payload, or empty string if distributed_tracing.exclude_newrelic_header is set
*/
String httpSafe();
}