public void lazyLoadTraceIdInjection()

in aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/config/XRaySDKConfiguration.java [356:366]


    public void lazyLoadTraceIdInjection(AWSXRayRecorder recorder) {
        // Fail fast if injection disabled or we've already tried to lazy load
        if (!agentConfiguration.isTraceIdInjection() || traceIdInjectionConfigured) {
            return;
        }
        traceIdInjectionConfigured = true;

        // We must use the context class loader because the whole reason we're lazy loading the injection libraries
        // is that they're only visible to the classloader used by the customer app
        recorder.addAllSegmentListeners(getTraceIdInjectorsReflectively(Thread.currentThread().getContextClassLoader()));
    }