Search in sources :

Example 1 with Agent

use of com.newrelic.api.agent.Agent in project newrelic-java-agent by newrelic.

the class LinkingMetadata method readLinkingMetadata.

@Override
public Map<String, String> readLinkingMetadata() {
    Agent agent = NewRelic.getAgent();
    Logger logger = agent.getLogger();
    logger.log(Level.INFO, "JMX LinkingMetadata: Fetching linking metadata from the agent...");
    return agent.getLinkingMetadata();
}
Also used : Agent(com.newrelic.api.agent.Agent) Logger(com.newrelic.api.agent.Logger)

Aggregations

Agent (com.newrelic.api.agent.Agent)1 Logger (com.newrelic.api.agent.Logger)1