Skip to content

Commit ba6d334

Browse files
committed
add links to filtered traces and service map in X-Ray console
1 parent 5ed7950 commit ba6d334

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

public/app/game-controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function Game($q, $scope, $http, $interval, $routeParams, SessionService, UserSe
77
$scope.moving = 0;
88
$scope.user = UserService.get({ id: $routeParams.userid });
99
$scope.winner = '';
10+
$scope.gameid = $routeParams.gameid;
1011

1112
$scope.playgame = function(){
1213
return $q(function(resolve, reject) {

public/app/session-controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ function Session($scope, $http, $location, $interval, $routeParams, SessionServi
55
$scope.session = new SessionService;
66
$scope.user = UserService.get({ id: $routeParams.userid });
77
$scope.allrules = RulesService.query();
8+
$scope.sessionid = $routeParams.sessionid;
89

910
$scope.loadSession = function() {
1011
GetSession = $scope.games.$promise.then(function(result) {

public/game.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@
1919
<div class="square" ng-click="move(9)">&nbsp;{{gamestate[9]}}</div>
2020
</div>
2121
</div>
22+
<div id="xray-link">
23+
<p><a href="https://console.aws.amazon.com/xray/home#/traces?filter=http.url%20CONTAINS%20%22{{ gameid }}%22&timeRange=PT1H" target="blank">View traces for this game</a></p>
24+
<p><a href="https://console.aws.amazon.com/xray/home#/service-map&timeRange=PT1H" target="blank">View service map</a></p>
25+
</div>
2226
</div>

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<h3 class="masthead-brand"><a href="#/" id="scorekeep-anchor">Scorekeep</a></h3>
4646
<nav class="nav nav-masthead">
4747
<a class="nav-link" href='#/' onclick="showhide('instructions');return false;">Instructions</a>
48-
<a class="nav-link" target="blank" href="https://aws.amazon.com/xray/">Powered by AWS X-Ray</a>
48+
<a class="nav-link" target="blank" href="https://console.aws.amazon.com/xray/home">Powered by AWS X-Ray</a>
4949
</nav>
5050
</div>
5151
</div>

public/session.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@
3232
</div>
3333
</div>
3434
</div>
35+
<div id="xray-link"><a href="https://console.aws.amazon.com/xray/home#/traces?filter=http.url%20CONTAINS%20%22{{ sessionid }}%22&timeRange=PT1H" target="blank">View traces for this session</a></div>
3536
</div>

0 commit comments

Comments
 (0)