Using a filter expression, you can define criteria by which to accept traces into a group.
You can call the group by name or by Amazon Resource Name (ARN) to generate its own service graph, trace summaries, and Amazon CloudWatch metrics. Once a group is created, incoming traces are checked against the group’s filter expression as they are stored in the X-Ray service. Metrics for the number of traces matching each criteria are published to CloudWatch every minute.
Updating a group’s filter expression does not change data that has already been recorded. The update applies only to subsequent traces. This can result in a merged graph of the new and old expressions. To avoid this, delete the current group and create a fresh one.
Defaultdrop down and select
Higherlatencyand enter the following filter expression. (This is a simple expression that filters for requests that exhibit a response time of greater than 3 seconds.)
responsetime > 3
Service Mapin the left navigation menu.
Higherlatencyfrom the default drop down.
You will see that the Service Map changes to only show the services and routes that exhibit a response time of greater than 3 seconds.
When a Group is created, X-Ray also publishes new metrics.
Group Metricsin the
All metrics tab towards the bottom of the screen.
Check the box next to
Click on the
Graphed metrics tab.
You will see a new metric called
ApproximateTraceCount created for the group
Higherlatency which you just created.
This concludes the X-Ray module.