Skip to content

Commit e157c1c

Browse files
authored
Ignore appdynamics classloaders (#239)
* Ignore appdynamic classloaders Signed-off-by: Pavol Loffay <[email protected]> * Fix Signed-off-by: Pavol Loffay <[email protected]> * Add bootstrap Signed-off-by: Pavol Loffay <[email protected]>
1 parent f95c793 commit e157c1c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions/HypertraceGlobalIgnoreMatcher.java

+9
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ public Result type(net.bytebuddy.description.type.TypeDescription target) {
3838

3939
@Override
4040
public Result classloader(ClassLoader classLoader) {
41+
// bootstrap
42+
if (classLoader == null) {
43+
return Result.DEFAULT;
44+
}
45+
46+
String name = classLoader.getClass().getName();
47+
if (name.startsWith("com.singularity.")) {
48+
return Result.IGNORE;
49+
}
4150
return Result.DEFAULT;
4251
}
4352
}

0 commit comments

Comments
 (0)