Skip to content

Commit e44bd80

Browse files
authored
return old interval
1 parent 9a25f04 commit e44bd80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ public class InferredSpansProcessor implements SpanProcessor {
5757
}
5858
}
5959

60-
public void setProfilerInterval(Duration interval) {
61-
config.setProfilerInterval(interval);
60+
public Duration setProfilerInterval(Duration interval) {
61+
Duration oldInterval = config.setProfilerInterval(interval);
6262
profiler.reschedule();
63+
return oldInterval
6364
}
6465

6566
public static InferredSpansProcessorBuilder builder() {

0 commit comments

Comments
 (0)