All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.newrelic.api.agent.DistributedTracePayload Maven / Gradle / Ivy

There is a newer version: 8.16.0
Show newest version
/*
 *
 *  * 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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy