Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NR-343305: Fix for NR-336204, where APM methods were present in stacktrace #357

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ private void logIfIastScanForFirstTime(K2RequestIdentifier fuzzRequestIdentifier

private static boolean checkIfNRGeneratedEvent(AbstractOperation operation) {
boolean isNettyReactor = false, isNRGeneratedEvent = false;
for (int i = 1, j = 0; i < operation.getStackTrace().length; i++) {
for (int i = 0, j = -1; i < operation.getStackTrace().length; i++) {
if(StringUtils.equalsAny(operation.getStackTrace()[i].getClassName(),
"com.nr.instrumentation.TokenLinkingSubscriber",
"com.nr.instrumentation.reactor.netty.TokenLinkingSubscriber",
Expand All @@ -599,6 +599,7 @@ private static boolean checkIfNRGeneratedEvent(AbstractOperation operation) {
j++;
} else if (StringUtils.startsWithAny(operation.getStackTrace()[i].getClassName(), "com.newrelic.", "com.nr.")) {
isNRGeneratedEvent = true;
break;
}
}
if (isNettyReactor) {
Expand Down
Loading