From 3e6910bce7d1cfd7b5918a8d3ff1befb93f6b680 Mon Sep 17 00:00:00 2001 From: Wu Date: Tue, 25 Sep 2018 14:46:26 -0700 Subject: [PATCH] update readme --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3f5f088..2c20688 100644 --- a/README.md +++ b/README.md @@ -51,13 +51,15 @@ The [API Reference](http://docs.aws.amazon.com/xray-sdk-for-ruby/latest/referenc ```ruby require 'aws-xray-sdk' -# configure path based sampling rules in case of web app +# For configuring sampling rules through X-Ray service +# please see https://docs.aws.amazon.com/xray/latest/devguide/xray-console-sampling.html. +# The doc below defines local fallback sampling rules which has lower priority. my_sampling_rules = { - version: 1, + version: 2, rules: [ { description: 'healthcheck', - service_name: '*', + host: '*', http_method: 'GET', url_path: '/ping', fixed_target: 0,