Skip to content

Commit 7fe0164

Browse files
authored
return old interval
1 parent e44bd80 commit 7fe0164

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/InferredSpans.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ public static boolean isEnabled() {
4242
*
4343
* @param interval the new profiler interval
4444
*/
45-
public static void setProfilerInterval(Duration interval) {
45+
public static Duration setProfilerInterval(Duration interval) {
4646
InferredSpansProcessor p = instance;
4747
if (p != null) {
48-
p.setProfilerInterval(interval);
48+
return p.setProfilerInterval(interval);
4949
}
50+
return null;
5051
}
5152
}

0 commit comments

Comments
 (0)