Skip to content

Commit

Permalink
fix: missed in #9234597
Browse files Browse the repository at this point in the history
  • Loading branch information
m4tu4g committed Sep 26, 2024
1 parent d65668b commit 4c0d346
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/retrieve/http/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ func produce(h *RetrieveHandler, c *gin.Context, shortID string) {
}

err := h.kafkaProducer.Produce(c, shortID, value)
traceContextFields := apmzap.TraceContext(c.Request.Context())
if err != nil {
logger.Infof("failed to produce message to Kafka: %v", err)
logger.ApmLogger.With(traceContextFields...).Error(err.Error())
return
}
}

0 comments on commit 4c0d346

Please sign in to comment.