From b1a41729f43377b8cfbed387753ebe4bcc0b405a Mon Sep 17 00:00:00 2001 From: Jonas Kunz Date: Wed, 22 May 2024 10:21:28 +0200 Subject: [PATCH] Exclude new Cisco AppD packages (#3632) --- CHANGELOG.asciidoc | 1 + .../src/main/java/co/elastic/apm/agent/bci/ElasticApmAgent.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index feeb63febf..1b2dd1cafb 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -34,6 +34,7 @@ Use subheadings with the "=====" level for adding notes for unreleased changes: [float] ===== Features * Added support for correlating APM data with elastic universal profiling data - {pull}3615[#3615], {pull}3602[#3602], {pull}3607[#3607], {pull}3598[#3598] +* Excluded latest AppDynamics packages from instrumentation (`com.cisco.mtagent.*`) - {pull}3632[#3632] [float] ===== Bug fixes diff --git a/apm-agent-core/src/main/java/co/elastic/apm/agent/bci/ElasticApmAgent.java b/apm-agent-core/src/main/java/co/elastic/apm/agent/bci/ElasticApmAgent.java index 05e092c94e..d0c7a468c4 100644 --- a/apm-agent-core/src/main/java/co/elastic/apm/agent/bci/ElasticApmAgent.java +++ b/apm-agent-core/src/main/java/co/elastic/apm/agent/bci/ElasticApmAgent.java @@ -737,6 +737,8 @@ public Iterable>> onError(int index, List> batc .or(nameStartsWith("com.singularity.")) .or(any(), classLoaderWithNamePrefix("com.appdynamics.")) .or(nameStartsWith("com.appdynamics.")) + .or(any(), classLoaderWithNamePrefix("com.cisco.mtagent.")) + .or(nameStartsWith("com.cisco.mtagent.")) .or(any(), classLoaderWithNamePrefix("com.instana.")) .or(nameStartsWith("com.instana.")) .or(any(), classLoaderWithNamePrefix("datadog."))