Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Document that Tracer#extract can return null (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
realark authored Jun 29, 2018
1 parent 4a04d98 commit cb40981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentracing-api/src/main/java/io/opentracing/Tracer.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ public interface Tracer {
* </code></pre>
*
* If the span serialized state is invalid (corrupt, wrong version, etc) inside the carrier this will result in an
* IllegalArgumentException.
* IllegalArgumentException. If the span serialized state is missing the method returns null.
*
* @param <C> the carrier type, which also parametrizes the Format.
* @param format the Format of the carrier
* @param carrier the carrier for the SpanContext state. All Tracer.extract() implementations must support
* io.opentracing.propagation.TextMap and java.nio.ByteBuffer.
*
* @return the SpanContext instance holding context to create a Span.
* @return the SpanContext instance holding context to create a Span, null otherwise.
*
* @see io.opentracing.propagation.Format
* @see io.opentracing.propagation.Format.Builtin
Expand Down

0 comments on commit cb40981

Please sign in to comment.