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