start()
java-spring-cloud
support for Spring Cloud Hoxton (Boot 2.2.1)? Has anyone run against it? I am doing so against RC2 (GA is not yet available for Hoxton but its soon). So far looks good. I do see a few warn/errors but am just starting to dig through them. Just wanted to touch base here before I do though.
opentracing-spring-jaeger-cloud-starter
to automatically trace restTemplate calls and JDBC traffic for a Quartz job. Was trying to aggregate all the spans into an overall transaction span by using Span span = GlobalTracer.get().buildSpan("quartzJob").start()
when kicking off the job but this returns an individual span as well. Anyway to mix manual span creation in with auto generated ones?
Scope scope = GlobalTracer.get().scopeManager().activate(span, false)
although I don't really understand why. Is the pattern to start a span then register it with the scope manager such that downstream methods know it is active and thus can be children?
beginExecution
and the code called in onCompleted
Scope
is not intended to passed between threads (that's why in the last version we even removed Scope.span()
)
public InstrumentationContext<ExecutionResult> beginExecution() {
Span span = ...;
return new SimpleInstrumentationContext<ExecutionResult>() {
@Override
public void onCompleted(ExecutionResult result, Throwable t) {
if (t != null) {
span.setTag(Tags.ERROR, true);
}
span.finish();
}
};
}