File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
http/src/main/java/io/opentelemetry/example/http Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ private static class HelloHandler implements HttpHandler {
4949 @ Override
5050 public void handle (HttpExchange exchange ) throws IOException {
5151 ((ExtendedSpanBuilder ) tracer .spanBuilder ("GET /" ))
52- .setParentFrom (
53- openTelemetry .getPropagators (),
54- exchange .getRequestHeaders ().entrySet ().stream ()
55- .collect (Collectors .toMap (Map .Entry ::getKey , e -> e .getValue ().get (0 ))))
56- .setSpanKind (SpanKind .SERVER )
52+ .setParentFrom (
53+ openTelemetry .getPropagators (),
54+ exchange .getRequestHeaders ().entrySet ().stream ()
55+ .collect (Collectors .toMap (Map .Entry ::getKey , e -> e .getValue ().get (0 ))))
56+ .setSpanKind (SpanKind .SERVER )
5757 .startAndRun (
5858 () -> {
5959 // Set the Semantic Convention
You can’t perform that action at this time.
0 commit comments