use of io.opentelemetry.javaagent.tooling.ignore.AdditionalLibraryIgnoredTypesConfigurer in project opentelemetry-java-instrumentation by open-telemetry.
the class TestAgentListener method buildOtherConfiguredIgnores.
private static Trie<IgnoreAllow> buildOtherConfiguredIgnores() {
Config config = Config.builder().build();
IgnoredTypesBuilderImpl builder = new IgnoredTypesBuilderImpl();
for (IgnoredTypesConfigurer configurer : SafeServiceLoader.loadOrdered(IgnoredTypesConfigurer.class)) {
// skip built-in agent ignores
if (configurer instanceof AdditionalLibraryIgnoredTypesConfigurer || configurer instanceof GlobalIgnoredTypesConfigurer) {
continue;
}
configurer.configure(config, builder);
}
return builder.buildIgnoredTypesTrie();
}
use of io.opentelemetry.javaagent.tooling.ignore.AdditionalLibraryIgnoredTypesConfigurer in project opentelemetry-java-instrumentation by open-telemetry.
the class TestAgentListener method buildAdditionalLibraryIgnores.
private static Trie<IgnoreAllow> buildAdditionalLibraryIgnores() {
IgnoredTypesBuilderImpl builder = new IgnoredTypesBuilderImpl();
new AdditionalLibraryIgnoredTypesConfigurer().configure(builder);
return builder.buildIgnoredTypesTrie();
}
Aggregations