XRay Tracing

    LocalStack Pro allows to instrument your applications using XRay tracing. This helps in optimizing the interactions between service calls, and facilitates debugging of performance bottlenecks.

    Running this code in Lambda on LocalStack will result in two trace segments being created in XRay - one from the instrumented client when running , and one for the custom subsegment denoted . You can use the regular XRay API calls (e.g., , BatchGetTraces) to retrieve the details (timestamps, IDs, etc) of these segments.

    Note: To use XRay in Lambdas, please note that you’ll need to configure - this will ensure that the XRay daemon process is fully initialized when spawning Lambda containers (may slightly increase startup times).