Skip to content

Commit 5ab2c3b

Browse files
committed
instrument startup client
1 parent 79b2cf8 commit 5ab2c3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/scorekeep/WebConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public Filter SimpleCORSFilter() {
3131
}
3232

3333
static {
34+
AWSXRay.beginSegment("Scorekeep");
3435
AWSXRayRecorderBuilder builder = AWSXRayRecorderBuilder.standard().withPlugin(new EC2Plugin()).withPlugin(new ElasticBeanstalkPlugin());
3536

3637
URL ruleFile = WebConfig.class.getResource("/sampling-rules.json");
@@ -41,5 +42,7 @@ public Filter SimpleCORSFilter() {
4142
if ( System.getenv("NOTIFICATION_EMAIL") != null ){
4243
Utils.createSubscription();
4344
}
45+
46+
AWSXRay.endSegment();
4447
}
4548
}

0 commit comments

Comments
 (0)