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();
}