Skip to content

Add trace ID injection into logs documentation #444

@willarmiros

Description

@willarmiros

For each supported language, it would be great to have a section to document how to inject trace IDs into logs. I know this is straightforward w/ the ADOT Java Agent, but I'm less sure about its support in other languages. However even for the Java Agent, which does the heavy lifting of making trace IDs available to be injected to logs, customers still need to update their logging configuration to include trace IDs in log messages. This should be documented for easy customer discoverability, so that services like CloudWatch ServiceLens which use trace IDs to correlate logs can perform as expected.

Example of X-Ray docs for how to configure this:
https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java-configuration.html#xray-sdk-java-configuration-logging

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions