i tried to do it according to the aws guide (<http...
# general
t
i tried to do it according to the aws guide (https://aws.amazon.com/blogs/devops/aspect-oriented-programming-for-aws-x-ray-using-spring/), create an interceptor and add the
@XRayEnabled
annotation for the controller or service class that we want to trace. but always got this error
Caused by: com.amazonaws.xray.exceptions.SubsegmentNotFoundException: Failed to end subsegment: subsegment cannot be found.
that error but quite irritating since the problem was, there is no
segment
created. Somehow the XrayServletFilter was not called. i also try to do this in resource.groovy
Copy code
xmlns aop:"<http://www.springframework.org/schema/aop>"
    xRayInterceptor(XRayInterceptor)

    aop{
        config("proxy-target-class": true)
    }
but still got that error