How can we sample the data in aws xray on the basis of http status code, e.g I would to sample 40% of records with status code 200 and 100% of records with status code 500. Below is the sample json but I cannot sample the data
const rules = {
"rules": [{
"description": "get users",
"service_name": "*",
"http_method": "GET",
"url_path": "*",
"fixed_target": 0,
"rate": 0.25
"attributes": {
"status": 200
}
}],
"default": { "fixed_target": 1, "rate": 0.1},
"version": 1
};