Logz.io
If you’re manage you logs within Logz.io, you can correlate logs with their corresponding traces and spans in Aspecto.

Enrich Your Logs With Telemetry Data

To search for the logs related to a specific trace or the request transaction which generated the trace, you’ll need to enrich your logs with the trace ID and span ID. These log fields will let you drill down via a link that opens the specific trace in Aspecto from within Logz.io.
The enrichment process depends on the language and log type. You can find here example how to add it using Aspecto SDK.

Correlating Logs and Traces

  1. 1.
    Once the trace ID is part of the log attributes, open the Kibana left menu, and select Management.
  2. 2.
    To manage log index patterns, click Index pattern and go to your default index pattern settings.
3. Search for the trace ID field you want to correlate with your logs and select Edit. In this example, the field name is traceID.
4. Change the Format to URL and enable Open in a new tab.
5. Using your main account, insert the following template in the URL template field of the trace in Aspecto, and Save field.
https://app.aspecto.io/app/traces/{{value}}
Each traceID attribute functions as a drill down link that leads you to the correlated trace view in Aspecto.