Skip to content

Commit

Permalink
debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedell-newrelic committed Dec 18, 2024
1 parent 79e1adf commit c1baff6
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,12 @@ void setOwningTransactionIsIgnored(boolean newState) {
*/
public Tracer tracerStarted(Tracer tracer) {
Agent.LOG.log(Level.INFO, "JGB tracerStarted: ", tracer);
StackTraceElement[] elems = Thread.currentThread().getStackTrace();
if (elems != null) {
for (int i = 0; i < elems.length && i < 3; i++) {
Agent.LOG.log(Level.INFO, "JGB -> "+elems[i].getClassName() + "." + elems[i].getMethodName());
}
}
// StackTraceElement[] elems = Thread.currentThread().getStackTrace();
// if (elems != null) {
// for (int i = 0; i < elems.length && i < 3; i++) {
// Agent.LOG.log(Level.INFO, "JGB -> "+elems[i].getClassName() + "." + elems[i].getMethodName());
// }
// }
Tracer tr = addTracerToStack(tracer);
if (tr != null && getTransaction() != null && tr.isTransactionSegment()) {
getTransaction().getTransactionCounts().addTracer();
Expand Down

0 comments on commit c1baff6

Please sign in to comment.