Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

To follow one request across orders-api and catalog-api, give it a request ID, pass that same ID in an x-request-id header, and include it in each service’s JSON log entries. Then search for the ID in Light Cloud’s Logs tabs to see the related events together.

This tutorial is the final installment of Light Cloud’s “Microservices on Light Cloud” series. It starts with the Bean There project from Parts 1–5 and uses Python for orders-api, JavaScript for catalog-api, and Light Cloud’s Logs tab. The tutorial was published September 29, 2026; its workflow demonstrates request correlation in that platform, not a replacement for a full distributed tracing system. See Light Cloud’s Microservices Part 6 tutorial.

What the request ID does

A request ID is a shared label for log entries produced while handling one request. In this example, orders-api receives a request, calls catalog-api, and includes the same ID in both services’ logs. The ID also goes back to the caller in the response header, so it can be used to look up the request later.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Each service follows the same rule: keep an incoming x-request-id, or create a UUID if there is no incoming ID. Add the resulting ID to the response header. When orders-api calls catalog-api, forward that value in the outbound x-request-id header rather than letting the second service start a separate chain.

Where the ID should come from

For this sample, a request may already include an ID. For production use, the tutorial recommends that the first service create it when needed; a browser should not choose the ID. The caller can get the ID from the response header or from the first log entry.

Prerequisites and deployment

Use the Bean There project from Parts 1–5. You need Git and a terminal with curl; on PowerShell 7 for Windows, use curl.exe. The tutorial identifies the part-6 tag in the tutorial-microservices repository. Both APIs change in this part, so redeploy orders-api and catalog-api before testing. The tutorial’s curl commands use placeholder deployment hosts; replace them with the endpoint for your own deployment.

Record the same fields in both services

Write one JSON object per line and include severity, service, requestId, and message. The shared field names and the shared request ID make it possible to search both services for the same request. Light Cloud’s Logs tab reads the severity field to set the log level and enable level filtering.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Python in orders-api: serialize a log record as JSON, print it, and flush the output.
  • JavaScript in catalog-api: serialize one log record as JSON and write it to the console.

Use the service’s own name in service, the propagated value in requestId, and an appropriate level such as a warning for a failed product lookup. Keeping the shape consistent is more important here than making the messages identical.

Follow a successful order across both services

  1. Send an order request to the deployed orders-api using the tutorial’s curl example, substituting your deployment host for the placeholder hostname.
  2. Capture its request ID. Read the x-request-id response header, or use the first log entry if you are examining a request already made.
  3. Search the ID in orders-api. Open its Logs tab in Light Cloud and search the exact request ID.
  4. Search the same ID in catalog-api. Open that service’s Logs tab and search the identical value, not a newly generated ID.

For the sample successful order, the related entries include messages such as “placing order,” “order placed,” and “reserved stock.” Their timestamps and shared request ID help show the request’s path between services.

Find the logs for a failed order

The tutorial’s failure case submits an order for a product that does not exist. The response is 404 Product not found, and the application records a warning. Light Cloud marks 4xx HTTP request logs as WARNING in its interface; this behavior describes Light Cloud’s Logs tab, not all logging systems.

  1. In the Logs tab, select a warnings-and-above filter to narrow the entries.
  2. Open the warning entry associated with the failed order and inspect its request ID.
  3. Search that ID in the catalog-api Logs tab to locate the related service entry.

This approach works whether you already know the request ID or first need to find a failure by its severity. A severity filter helps locate candidate events; the request ID then connects the relevant entries across services.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What this workflow does—and does not—cover

This is a practical request-correlation pattern for the two APIs in the Bean There tutorial. It establishes how to create or retain an ID, forward it between these services, log it as JSON, and find matching entries in Light Cloud. The tutorial does not establish how to propagate context through asynchronous messages or provide broader production distributed-tracing guidance, so do not treat this logging setup as a complete tracing design.

Best Value
Grooved Writing Books for Kids 3-5 - Magic Grooved Writing Practice
  • Develop Handwriting Skills with Complete Grooved Writing Books for Kids 3-5. Preschool learning toys packed with activities that engage hands-on learners, this 5-book set includes 2 magic pens, 10 disappearing ink refills, 2 soft pencil grips, and a sticker sheet. Ideal for screen-free entertainment and fine motor skill growth. Fun, learning toys for 4 year old for home use or classrooms, supporting early learning and creative self-expression.
  • Spark Confidence with 48 Engaging Activities Across 5 Reusable Kids Books. Grooved Tracing Books for Kids Ages 3-5 feature letter tracing, counting, early math and word recognition. This spiral-bound set strengthens fine motor development while fostering STEAM learning through play. Perfect gifts for 5 year old girls or gifts for 3 year old boys that are ready to boost literacy skills at school, home, or during holiday breaks.
  • Make Learning to Write Exciting Using Magic Pens with Disappearing Ink! Ideal 4 year old boy toys for sensory-friendly and neurodiverse learners. Grooved handwriting practice for kids 5-7 improves coordination and focus while enjoying calming, screen-free learning toys for 4+ year old children that’s great for quiet time, travel, or educational play. Thoughtful gifts for 5 year old girls or gifts for 4 year old boys that inspire writing practice and imagination development.
  • Encourage Creativity and Skill Building with Magic Grooved Writing Practice for Kids Age 3-5. Features vivid pages, spiral binding, and left and right-hand accessibility. Designed for durability and comfort, this colorful writing practice set is a standout among Christmas gifts for grandkids and 4 year old girl birthday gifts. Ideal educational toys for 4 year old boys and girls for preschool classrooms or home settings, it blends learning with artistic expression to inspire young writers.
  • Fun and Educational Christmas Gifts for Kids. These activity books for 3 year olds combine educational fun and writing skill growth in one engaging experience. Loved by parents and teachers, these Christmas gifts for girls and boys strengthen hand-eye coordination, support screen-free learning, and make Christmas, birthdays or back to school gifting easy. Add to Cart now to surprise a young learner with hours of joyful writing discovery!

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.