Skip to content

Commit 044b068

Browse files
authored
Only track breakdown metrics if enabled (#737)
1 parent 15f57f4 commit 044b068

File tree

1 file changed

+3
-1
lines changed
  • apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction

1 file changed

+3
-1
lines changed

apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/Transaction.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ public void beforeEnd(long epochMicros) {
186186

187187
@Override
188188
protected void afterEnd() {
189-
trackMetrics();
189+
if (collectBreakdownMetrics) {
190+
trackMetrics();
191+
}
190192
this.tracer.endTransaction(this);
191193
}
192194

0 commit comments

Comments
 (0)