Debugging in microservices is challenging without structured logging. This post explores logging strategies for HTTP requests, Kafka events, and concurrency in Java, Golang, and Python. It addresses context loss in Java’s multi-threading by introducing MDCAwareCompletableFuture and MDCAwareExecutorService, ensuring traceability

8m read timeFrom blogs.halodoc.io
Post cover image
Table of contents
Introduction: Consistent and Traceable LoggingThe Challenge: Tracing Complexity in Distributed SystemsStandardization of Logging Across OperationsHow This Approach Solved Our ChallengesJava Implementation: Code Patterns and PseudocodeGolang & Python Implementation: Code Patterns and PseudocodeLog Tracing with Structured LoggingConclusionJoin UsAbout Halodoc
1 Comment

Sort: