rohitprg

Results 2 issues of rohitprg

This is the PR for issue #18 Span-reporter should have an option to use the tracing implementation's span id instead of generating its own. Span-reporter method SpanBuilderR.findSpanId calls context.baggageItems() twice.

https://github.com/opentracing-contrib/java-span-reporter/blob/6e65e7fc88ebc9efdd0fc5522a391bbc01be8e4f/span-reporter/src/main/java/io/opentracing/contrib/reporter/SpanBuilderR.java#L113 Span reporter uses UUID.randomUUID() to generate the span id, which internally uses SecureRandom and is very slow. Whereas tracer server like Jaeger uses Java6CompatibleThreadLocalRandom.current().nextLong() which is 10 times faster...