Product, order and inventory services behind Spring Cloud Gateway (WebMVC), configuration from a Config Server, discovery with Eureka, a Resilience4j circuit breaker on order -> inventory and Brave tracing. Run as six plain jars; output/ holds real transcripts (config, registry, requests, trace propagation, circuit breaker, startup race and the load-balanced RestClient.Builder trap). Dockerfile and docker-compose.yml are included but were not run. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HhW8LD8r3EigoBaCGrQZx5
13 lines
982 B
Plaintext
13 lines
982 B
Plaintext
# One request, one trace id, four services. Lines are 'service | traceId-spanId | message' from each service's log.
|
|
|
|
--- POST /api/orders sent to the gateway; trace id 6ad8f16556352b627323a47cb0510c20 ---
|
|
gateway | 6ad8f16556352b627323a47cb0510c20-7323a47cb0510c20 | gateway received POST /api/orders
|
|
order-service | 6ad8f16556352b627323a47cb0510c20-fe6e6271c03b82ea | placing order for product 2 x1
|
|
product-service | 6ad8f16556352b627323a47cb0510c20-a01e14c8e2434acc | looking up product 2
|
|
inventory-service | 6ad8f16556352b627323a47cb0510c20-419570d38f840942 | reserved 1 of product 2, 7 left
|
|
order-service | 6ad8f16556352b627323a47cb0510c20-fe6e6271c03b82ea | order 2 is CONFIRMED
|
|
|
|
--- a caller that already has a trace id (W3C traceparent header): the same id comes out the other end ---
|
|
gateway | 4bf92f3577b34da6a3ce929d0e0e4736-91a3561198164d6c | gateway received GET /api/products/1
|
|
product-service | 4bf92f3577b34da6a3ce929d0e0e4736-bce2498c85b72fc7 | looking up product 1
|