Skip to content

Commit 6470973

Browse files
authored
return the Honeycomb trace span at the filter level, not the root span that is inside it. (#1493)
1 parent e91cc07 commit 6470973

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

subsys/honeycomb/src/main/java/org/commonjava/indy/subsys/honeycomb/HoneycombManager.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import io.honeycomb.beeline.tracing.SpanBuilderFactory;
66
import io.honeycomb.beeline.tracing.SpanPostProcessor;
77
import io.honeycomb.beeline.tracing.Tracer;
8+
import io.honeycomb.beeline.tracing.TracerSpan;
89
import io.honeycomb.beeline.tracing.Tracing;
910
import io.honeycomb.beeline.tracing.sampling.Sampling;
1011
import io.honeycomb.libhoney.HoneyClient;
@@ -75,8 +76,8 @@ public Span startRootTracer( String spanName )
7576
.setSpanName( spanName )
7677
.setServiceName( "indy" )
7778
.build();
78-
beeline.getTracer().startTrace( rootSpan );
79-
return rootSpan;
79+
return beeline.getTracer().startTrace( rootSpan );
80+
// return rootSpan;
8081
}
8182

8283
return null;

0 commit comments

Comments
 (0)