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

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

Go to download

The public API of the Java agent, and no-op implementations for safe usage without the agent.

The newest version!
/*
 *
 *  * Copyright 2024 New Relic Corporation. All rights reserved.
 *  * SPDX-License-Identifier: Apache-2.0
 *
 */

package com.newrelic.api.agent;

/**
 * This interface defines methods to pass cloud services information to the agent.
 */
public interface Cloud {

    /**
     * 

* Sets the account information for a cloud service. *

*

* This information is used by some instrumentation modules that cannot * determine the resource id of the cloud service being invoked. *

*

* The value provided to this method has priority over a value set in * the agent configuration. *

*

* Passing null as the value will remove the account information previously stored. *

* @param cloudAccountInfo the type of account information being stored * @param value the value to store */ void setAccountInfo(CloudAccountInfo cloudAccountInfo, String value); /** *

* Sets the account information for a cloud service SDK client. *

*

* This information is used by some instrumentation modules that cannot * determine the resource id of the cloud service being invoked. *

*

* The value provided to this method has priority over a value set in * the agent configuration or a value set using {@link #setAccountInfo(CloudAccountInfo, String)}. *

*

* Passing null as the value will remove the account information previously stored. *

* @param sdkClient the SDK client object this account information is associated with * @param cloudAccountInfo the type of account information being stored * @param value the value to store */ void setAccountInfo(Object sdkClient, CloudAccountInfo cloudAccountInfo, String value); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy