
com.datadoghq.agent.InstrumentationChecker Maven / Gradle / Ivy
package com.datadoghq.agent;
import com.datadoghq.trace.resolver.FactoryUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
/**
* Utility class to check the validity of the classpath concerning the java automated
* instrumentations
*/
@Slf4j
public class InstrumentationChecker {
private static final String CONFIG_FILE = "dd-trace-supported-framework";
private final Map> rules;
/* For testing purpose */
InstrumentationChecker(
final Map> rules, final Map frameworks) {
this.rules = rules;
}
public InstrumentationChecker() {
rules =
FactoryUtils.loadConfigFromResource(
CONFIG_FILE, new TypeReference
© 2015 - 2025 Weber Informatics LLC | Privacy Policy