forked from DataDog/system-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpected_behaviors.json
44 lines (44 loc) · 1.41 KB
/
expected_behaviors.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[
{
"test_case": {
"description": "Http server spans should include specified headers as tags when DD_TRACE_HEADER_TAGS is set.",
"configuration": {
"DD_TRACE_HEADER_TAGS": "User-Agent:http.user_agent,Referer:http.referer,Content-Type:http.content_type,Etag:http.etag"
},
"http_request": {
"headers": {
"User-Agent": "Mozilla/5.0",
"Referer": "https://example.com",
"Content-Type": "application/json",
"Etag": "W/\"12345\""
}
},
"expected_output": {
"span": {
"name": "http.request",
"tags": {
"http.useragent": "Mozilla/5.0",
"http.content_type": "application/json"
}
}
}
}
},
{
"test_case": {
"description": "Http server spans should default to no headers if DD_TRACE_HEADER_TAGS is not set.",
"configuration": {
"DD_TRACE_HEADER_TAGS": ""
},
"http_request": {
"headers": {}
},
"expected_output": {
"span": {
"name": "http.request",
"tags": {}
}
}
}
}
]