Skip to content

Commit 500018f

Browse files
committed
don't postprocess if it's disabled
1 parent 40834c4 commit 500018f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfiler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ EventPoller.PollState consumeActivationEventsFromRingBufferAndWriteToFile() thro
532532
}
533533

534534
public void processTraces() throws IOException {
535+
if (!config.isPostProcessingEnabled()) {
536+
return;
537+
}
535538
if (jfrParser == null) {
536539
jfrParser = new JfrParser();
537540
}

0 commit comments

Comments
 (0)