Modular Monolith Observability: Logging & Profiling

Answer-First: Observability in modular monoliths leverages in-process OpenTelemetry span propagation across module boundaries without network serialization overhead. Combining in-memory context tracking with structured logging reduces telemetry ingestion costs while retaining microservice-level latency visibility. Pillar Architecture Guide: This article is part of the Architecting 21-Service E-commerce with Golang & DDD series and Composable E-Commerce Migration guide. Please refer to the original article for a comprehensive overview of the architecture. Prerequisite: Before reading this part, please review Part 4: CI/CD Simplified. ...

July 3, 2026 · 7 min · Lê Tuấn Anh

Go Microservices Distributed Tracing Architecture (2026)

Go Microservices Distributed Tracing Architecture (2026) Answer-First: Distributed tracing in Go microservices relies on OpenTelemetry (OTel) SDKs to propagate W3C Trace Context across HTTP APIs, gRPC calls, and Kafka event streams. By implementing an OTel Collector Gateway with tail-based sampling, engineering teams maintain end-to-end transaction visibility and rapidly pinpoint latency bottlenecks without incurring prohibitive telemetry storage costs. OpenTelemetry collector tuning for low-overhead distributed tracing. Propagating span contexts over asynchronous Kafka messaging systems without breaking tracing chains. Monitoring complex Go microservices requires more than isolated logs. When a request traverses HTTP APIs, Kafka event streams, and asynchronous worker pools, you need absolute visibility to pinpoint latency bottlenecks and failures. ...

June 8, 2026 · 12 min · Lê Tuấn Anh