Skip to content

Commit 2c854a8

Browse files
committed
add back original method
1 parent 4e79015 commit 2c854a8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

javaagent-bootstrap/src/main/java/io/opentelemetry/javaagent/bootstrap/OpenTelemetrySdkAccess.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ public interface ForceFlusher {
2727

2828
private static volatile ForceFlusher forceFlush;
2929

30-
/** Forces flushing of pending spans. */
30+
/** Forces flushing of pending telemetry. */
31+
@Deprecated
32+
public static void forceFlush(int timeout, TimeUnit unit) {
33+
forceFlush((long) timeout, unit);
34+
}
35+
36+
/** Forces flushing of pending telemetry. */
3137
public static void forceFlush(long timeout, TimeUnit unit) {
3238
forceFlush.run(timeout, unit);
3339
}

0 commit comments

Comments
 (0)