title: AWS X-Ray AmazonDynamoDBv2 segment not found
body: <p>I have a web application (spring) which I want to instrument using AWS-XRay. I have added "AWSXRayServletFilter" in my web.xml, and the below snippet in my spring configuration class, as per documentation.</p>
  
  <pre><code>static {
      AWSXRayRecorderBuilder builder = AWSXRayRecorderBuilder.standard()
          .withPlugin(new EC2Plugin()).withPlugin(new ECSPlugin());
  
      builder.withSamplingStrategy(new DefaultSamplingStrategy());
  
      AWSXRay.setGlobalRecorder(builder.build());
  }
  </code></pre>
  
  <p>The below dependency is also added in pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
              &lt;artifactId&gt;aws-xray-recorder-sdk-aws-sdk-instrumentor&lt;/artifactId&gt;
              &lt;version&gt;1.2.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>During the application start up, I am getting the below exception. </p>
  
  <p>com.amazonaws.xray.exceptions.SegmentNotFoundException: Failed to begin subsegment named 'AmazonDynamoDBv2': segment cannot be found</p>
  
  <p>Any pointers to solve this will be helpful</p>