File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 44import com .amazonaws .xray .AWSXRayRecorderBuilder ;
55import com .amazonaws .xray .javax .servlet .AWSXRayServletFilter ;
66import com .amazonaws .xray .plugins .EC2Plugin ;
7+ import com .amazonaws .xray .plugins .ElasticBeanstalkPlugin ;
78import com .amazonaws .xray .strategy .sampling .DefaultSamplingStrategy ;
89import org .apache .commons .logging .Log ;
910import org .apache .commons .logging .LogFactory ;
@@ -36,7 +37,7 @@ public Filter SimpleCORSFilter() {
3637 }
3738
3839 static {
39- AWSXRayRecorderBuilder builder = AWSXRayRecorderBuilder .standard ().withPlugin (new EC2Plugin ());
40+ AWSXRayRecorderBuilder builder = AWSXRayRecorderBuilder .standard ().withPlugin (new EC2Plugin ()). withPlugin ( new ElasticBeanstalkPlugin ()) ;
4041
4142 URL ruleFile = WebConfig .class .getResource ("/sampling-rules.json" );
4243 builder .withSamplingStrategy (new DefaultSamplingStrategy (ruleFile ));
You can’t perform that action at this time.
0 commit comments