this.restTemplate = restTemplate;
this.eventGateway = eventGateway;
}
public Ingredients updateIfLimitReached(Ingredients ingredients, String processId) {
if (ingredientsMatchTheThreshold(ingredients)) {
<BUG>log.info("Ingredients match the threshold [{}] - time to notify the maturing service!",

ingredientsProperties.getThreshold());
eventGateway.emitEvent(Event.builder().eventType(EventType.BREWING_STARTED).processId(processId).build());</BUG>
notifyMaturingService(ingredients, processId);

this.restTemplate = restTemplate;
this.eventGateway = eventGateway;
}
public Ingredients updateIfLimitReached(Ingredients ingredients, String processId) {
if (ingredientsMatchTheThreshold(ingredients)) {
log.info("Ingredients match the threshold [{}] - time to notify the maturing service! Span info [{}]",
ingredientsProperties.getThreshold(), SpanContextHolder.getCurrentSpan().getTraceId());
eventGateway.emitEvent(Event.builder().eventType(EventType.BREWING_STARTED).processId(processId).build());
notifyMaturingService(ingredients, processId);
