samplingRatiooption to control the general sampling rate of our client. But sometimes you'd want more sampling control only over specific trac. That's where sampling rules come in handy.
health-checkrequests where the service name is
wikipedia-serviceand the environment starts with
prod. Setting a rule matcher for Service Name and Environment is mandatory. You can then choose to create extra conditions for your rules. Possible matchers for the extra conditions are:
HTTP Request Path equals "/user", and my flow starts with a request to an endpoint called
/account, which internally calls the
/userendpoint, the rule will not apply, even though the user endpoint was involved.
"HELLO" contains "he"will match)
samplingRateoption or 100% if none provided).