Skip to content

Commit 89a7086

Browse files
authored
handle test failure (#2443)
1 parent 6eecdc1 commit 89a7086

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public long nanoTime() {
4040
* translation.
4141
*/
4242
public long getAnchor(Span span) {
43-
return nanoTimeOffsetMap.get(span);
43+
Long val = nanoTimeOffsetMap.get(span);
44+
return val != null ? val : 0L;
4445
}
4546

4647
/**

0 commit comments

Comments
 (0)