Skip to content

Commit 4aaa072

Browse files
committed
flesh out sampling rules
1 parent 425141a commit 4aaa072

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

src/main/resources/sampling-rules.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,23 @@
66
"service_name": "*",
77
"http_method": "POST",
88
"url_path": "/api/user",
9-
"fixed_target": 10,
9+
"fixed_target": 1,
10+
"rate": 1.0
11+
},
12+
{
13+
"description": "Session creation.",
14+
"service_name": "*",
15+
"http_method": "POST",
16+
"url_path": "/api/session",
17+
"fixed_target": 1,
18+
"rate": 1.0
19+
},
20+
{
21+
"description": "Game creation.",
22+
"service_name": "*",
23+
"http_method": "POST",
24+
"url_path": "/api/game/*",
25+
"fixed_target": 1,
1026
"rate": 1.0
1127
},
1228
{
@@ -15,6 +31,30 @@
1531
"http_method": "*",
1632
"url_path": "/api/move/*",
1733
"fixed_target": 1,
34+
"rate": 1.0
35+
},
36+
{
37+
"description": "Session polling.",
38+
"service_name": "*",
39+
"http_method": "GET",
40+
"url_path": "/api/session/*",
41+
"fixed_target": 0,
42+
"rate": 0.05
43+
},
44+
{
45+
"description": "Game polling.",
46+
"service_name": "*",
47+
"http_method": "GET",
48+
"url_path": "/api/game/*/*",
49+
"fixed_target": 0,
50+
"rate": 0.05
51+
},
52+
{
53+
"description": "State polling.",
54+
"service_name": "*",
55+
"http_method": "GET",
56+
"url_path": "/api/state/*/*/*",
57+
"fixed_target": 0,
1858
"rate": 0.05
1959
}
2060
],

0 commit comments

Comments
 (0)