Trace a Transaction

  1. Begin with the Service Map. To open a service map, in the Sumo UI, click +New, and then Service Map.

    Filter for Application Name= the-coffee-bar-app

    Service Map

  2. In the Service map, you can see that the-coffee-bar-app shows anomalies in some of its micro services.

    Micro Service Anomalies

  3. Mouse over one of the services that are showing anomalies, to see more details:

    Details

  4. Click on the service with the anomaly, this will open the Entity Inspector, where the latency and error metrics are listed.

    Entity Explorer

  5. Click Open In, and then select Traces.

    Traces

    Alternatively, you can near the top of the Sumo Logic UI, click +New > Traces.

    The trace page opens for the service selected. The window will show a list of traces related to that service, displayed in a table format.

    Select the first trace on the table, alternatively you can filter the table by the number of error column

    Trace Details

    Click the trace Duration Breakdown to open the trace view.

    Duration Breakdown

  6. Filter by Error Span Only.

    Error Spans

  7. Click on the /get_coffee operation, to find out what happened to our coffee order.

    If you have selected a different service the operation will also have a different name. For example, water service uses get_water.

    Trace View

    This will open the Detail Pane on the right of the screen, on the Summary Tab. You can see the span details of the transaction and related logs below the details.

  8. Click the first Log search to open the logs related to the Span ID.

    Span ID

  9. When you go through the logs entry, you will see the cause of the error.

    If you have chosen another serve i.e the water service the error would have occurred due to insufficient water in the coffee machine.

    Error Cause

  10. Inform the barista at the particular error so the problem can be rectified.

    Optional: Use the SpanId and open in the Span Analytics tab to search and look further into the metadata related to the span.