File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
http/src/main/java/io/opentelemetry/example/http Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,12 @@ private static class HelloHandler implements HttpHandler {
4848
4949 @ Override
5050 public void handle (HttpExchange exchange ) throws IOException {
51- // TODO (trask) clean up chaining after
52- // https://github.com/open-telemetry/opentelemetry-java/pull/6514
53- ((ExtendedSpanBuilder )
54- ((ExtendedSpanBuilder ) tracer .spanBuilder ("GET /" ))
55- .setParentFrom (
56- openTelemetry .getPropagators (),
57- exchange .getRequestHeaders ().entrySet ().stream ()
58- .collect (Collectors .toMap (Map .Entry ::getKey , e -> e .getValue ().get (0 ))))
59- .setSpanKind (SpanKind .SERVER ))
51+ ((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 )
6057 .startAndRun (
6158 () -> {
6259 // Set the Semantic Convention
You can’t perform that action at this time.
0 commit comments