Skip to content

Commit 9a25f04

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ public Duration getProfilingInterval() {
8484
return profilerInterval;
8585
}
8686

87-
public void setProfilerInterval(Duration profilerInterval) {
87+
public Duration setProfilerInterval(Duration profilerInterval) {
88+
Duration oldInterval = this.profilerInterval;
8889
this.profilerInterval = profilerInterval;
90+
return oldInterval;
8991
}
9092

9193
public Duration getProfilingDuration() {

0 commit comments

Comments
 (0)