Skip to content

Commit

Permalink
Merge pull request #1495 from newrelic/log-on-frozen-txn-name
Browse files Browse the repository at this point in the history
Log message when transaction name is frozen
  • Loading branch information
jtduffy committed Sep 11, 2023
2 parents 5f7e902 + 73c2e29 commit 2c20813
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
package com.newrelic.agent.transaction;

import java.text.MessageFormat;
import java.util.logging.Level;

import com.newrelic.agent.Agent;
import com.newrelic.agent.MetricNames;
import com.newrelic.agent.Transaction;
import com.newrelic.agent.bridge.TransactionNamePriority;
Expand Down Expand Up @@ -74,6 +76,7 @@ public boolean isFrozen() {
}

public PriorityTransactionName freeze() {
Agent.LOG.log(Level.FINEST, "Setting priority transaction name to FROZEN: {0}", toString());
if (isFrozen()) {
return this;
}
Expand Down

0 comments on commit 2c20813

Please sign in to comment.