Skip to content

Commit 45382af

Browse files
author
Michael Wunderlich
committed
beanstalk plugin
Conflicts: build.gradle
1 parent 7e94620 commit 45382af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ dependencies {
3636
compile("com.amazonaws:aws-xray-recorder-sdk-aws-sdk-instrumentor")
3737
compile("com.amazonaws:aws-xray-recorder-sdk-apache-http")
3838
compile("com.amazonaws:aws-xray-recorder-sdk-sql-postgres")
39-
compile("com.amazonaws:aws-xray-recorder-sdk-sql-mysql")
4039
compile("org.postgresql:postgresql:9.4.1211.jre7")
4140
testCompile("junit:junit:4.11")
4241
compile("com.fasterxml.jackson.core:jackson-databind:2.8.4")
@@ -46,7 +45,7 @@ dependencies {
4645
dependencyManagement {
4746
imports {
4847
mavenBom("com.amazonaws:aws-java-sdk-bom:1.11.67")
49-
mavenBom("com.amazonaws:aws-xray-recorder-sdk-bom:1.0.0-beta")
48+
mavenBom("com.amazonaws:aws-xray-recorder-sdk-bom:1.0.1-beta")
5049
}
5150
}
5251
task wrapper(type: Wrapper) {

src/main/java/scorekeep/RdsWebConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.amazonaws.xray.AWSXRayRecorderBuilder;
55
import com.amazonaws.xray.javax.servlet.AWSXRayServletFilter;
66
import com.amazonaws.xray.plugins.EC2Plugin;
7+
import com.amazonaws.xray.plugins.ElasticBeanstalkPlugin;
78
import com.amazonaws.xray.strategy.sampling.DefaultSamplingStrategy;
89
import org.apache.commons.logging.Log;
910
import org.apache.commons.logging.LogFactory;
@@ -54,7 +55,7 @@ public GameHistoryModel gameHistoryModel() {
5455
}
5556

5657
static {
57-
AWSXRayRecorderBuilder builder = AWSXRayRecorderBuilder.standard().withPlugin(new EC2Plugin());
58+
AWSXRayRecorderBuilder builder = AWSXRayRecorderBuilder.standard().withPlugin(new EC2Plugin()).withPlugin(new ElasticBeanstalkPlugin());
5859

5960
URL ruleFile = WebConfig.class.getResource("/sampling-rules.json");
6061
builder.withSamplingStrategy(new DefaultSamplingStrategy(ruleFile));

0 commit comments

Comments
 (0)