SpanContextHolder.getCurrentSpan().getTraceId() : "");
return new WebAsyncTask<>(() -> {
Span span = tracer.startTrace("inside_ingredients");
Ingredient ingredient = new Ingredient(ingredientType, stubbedIngredientsProperties.getReturnedIngredientsQuantity());
log.info("Returning [{}] as fetched ingredient from an external service. Span [{}]", ingredient, SpanContextHolder.isTracing() ?
<BUG>SpanContextHolder.getCurrentSpan() : "");
</BUG>
tracer.close(span);
return ingredient;
});

SpanContextHolder.getCurrentSpan().getTraceId() : "");
return new WebAsyncTask<>(() -> {
Span span = tracer.startTrace("inside_ingredients");
Ingredient ingredient = new Ingredient(ingredientType, stubbedIngredientsProperties.getReturnedIngredientsQuantity());
log.info("Returning [{}] as fetched ingredient from an external service. Span [{}]", ingredient, SpanContextHolder.isTracing() ?
SpanContextHolder.getCurrentSpan().getTraceId() : "");
tracer.close(span);
return ingredient;
});
