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

com.newrelic.api.agent.AttributeHolder 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!
package com.newrelic.api.agent;

import java.util.Map;


public interface AttributeHolder {

    /**
     * Adds/Replaces a numerical attribute.
     *
     * @since 6.1.0
     */
    void addCustomAttribute(String key, Number value);

    /**
     * Adds/Replaces a string attribute.
     *
     * @since 6.1.0
     */
    void addCustomAttribute(String key, String value);

    /**
     * Adds/Replaces a boolean attribute.
     *
     * @since 6.1.0
     */
    void addCustomAttribute(String key, boolean value);

    /**
     * Adds/Replaces key/value pairs.
     *
     * @since 6.1.0
     */
    void addCustomAttributes(Map attributes);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy