Skip to content

Commit

Permalink
[#1869] Fix extraction of trace context from CoAP request
Browse files Browse the repository at this point in the history
The TracingSupportingHonoResource used a carrier format that is defined
by OpenTracing, but not supported by Jaeger. It now uses the standard
BINARY format.

Signed-off-by: Kai Hudalla <[email protected]>
  • Loading branch information
sophokles73 committed Apr 2, 2020
1 parent 9238ac4 commit 85708cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import io.opentracing.propagation.Binary;

/**
* An adapter for injecting/extracting an OpenTracing span context to/from a CoAP option.
* An adapter for injecting/extracting an OpenTracing {@code SpanContext} to/from a CoAP option.
* <p>
* The option number being used to hold the context is {@link #OPTION_TRACE_CONTEXT}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Resource getChild(final String name) {
}

private SpanContext extractSpanContextFromRequest(final OptionSet requestOptions) {
return tracer.extract(Format.Builtin.BINARY_EXTRACT, new CoapOptionInjectExtractAdapter(requestOptions));
return tracer.extract(Format.Builtin.BINARY, new CoapOptionInjectExtractAdapter(requestOptions));
}

private Span newSpan(final Exchange exchange) {
Expand Down

0 comments on commit 85708cc

Please sign in to comment.