Tag

HTTP Interceptor

1 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Apr 6, 2022 · Backend Development

Using MDC for TraceId Propagation in Java Applications

This article explains what MDC (Mapped Diagnostic Context) is, shows its API and advantages, demonstrates how to add interceptors and log patterns to include a traceId, and provides solutions for traceId loss in child threads and HTTP calls by wrapping thread pools and implementing HTTP client interceptors.

HTTP InterceptorLoggingMDC
0 likes · 11 min read
Using MDC for TraceId Propagation in Java Applications
Architecture Digest
Architecture Digest
Mar 19, 2022 · Backend Development

Using MDC for TraceId Propagation in Java Backend Applications

This article explains what MDC (Mapped Diagnostic Context) is, its API and advantages, demonstrates how to integrate it into Spring MVC interceptors and log patterns, and provides solutions for traceId loss in child threads and HTTP calls using custom thread‑pool wrappers and HTTP client interceptors.

HTTP InterceptorLoggingMDC
0 likes · 11 min read
Using MDC for TraceId Propagation in Java Backend Applications
macrozheng
macrozheng
Jan 14, 2022 · Backend Development

Mastering MDC in Spring Boot: Prevent TraceId Loss in Multithreaded Logging

This article explains what MDC is, its API, advantages, common issues like traceId loss in child threads and HTTP calls, and provides practical solutions using custom thread‑pool wrappers and HTTP interceptors to ensure reliable logging in Spring Boot applications.

HTTP InterceptorLoggingMDC
0 likes · 11 min read
Mastering MDC in Spring Boot: Prevent TraceId Loss in Multithreaded Logging
Code Ape Tech Column
Code Ape Tech Column
Dec 13, 2021 · Backend Development

Understanding and Implementing MDC (Mapped Diagnostic Context) in Java Logging

This article introduces MDC, explains its API and advantages, and provides practical solutions for traceId propagation in multithreaded environments, HTTP calls, and custom thread pools using Java logging frameworks such as Log4j, Logback, and Log4j2.

HTTP InterceptorLoggingMDC
0 likes · 11 min read
Understanding and Implementing MDC (Mapped Diagnostic Context) in Java Logging
Selected Java Interview Questions
Selected Java Interview Questions
Dec 12, 2021 · Backend Development

MDC and TraceId Propagation in Java Backend Applications

This article explains what MDC is, the problems it faces such as traceId loss in child threads and HTTP calls, and provides concrete solutions including interceptor implementation, thread‑pool wrappers, and logging pattern adjustments to ensure reliable traceId propagation in Java backend services.

HTTP InterceptorLoggingMDC
0 likes · 12 min read
MDC and TraceId Propagation in Java Backend Applications