Skip to content

Commit 09cdb0a

Browse files
authored
Add feature flag span enrichment system tests (#6828)
Co-authored-by: sameeran.kunche <sameeran.kunche@datadoghq.com>
1 parent 83b66bb commit 09cdb0a

16 files changed

Lines changed: 1230 additions & 35 deletions

File tree

‎manifests/cpp.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ manifest:
9999
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2::test_capability_tracing_http_header_tags: irrelevant (The CPP tracer doesn't support http header tags)
100100
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2::test_capability_tracing_logs_injection: irrelevant (Tracer doesn't support automatic logs injection)
101101
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation: missing_feature
102+
tests/parametric/test_ffe/test_span_enrichment.py: missing_feature
102103
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_extract_invalid: missing_feature (format of DD_TRACE_PROPAGATION_STYLE_EXTRACT not supported)
103104
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_extract_valid: missing_feature (format of DD_TRACE_PROPAGATION_STYLE_EXTRACT not supported)
104105
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_inject_valid: missing_feature (format of DD_TRACE_PROPAGATION_STYLE_EXTRACT not supported)

‎manifests/dotnet.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ manifest:
811811
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation: '>=3.36.0' # Modified by easy win activation script
812812
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation::test_ffe_flag_evaluation: missing_feature # Created by easy win activation script
813813
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation::test_ffe_of7_empty_targeting_key: missing_feature # Created by easy win activation script
814+
tests/parametric/test_ffe/test_span_enrichment.py: missing_feature
814815
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_migrated_extract_valid: missing_feature (Need to remove b3=b3multi alias)
815816
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_migrated_inject_valid: missing_feature (Need to remove b3=b3multi alias)
816817
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_migrated_propagate_invalid: missing_feature (Need to remove b3=b3multi alias)

‎manifests/golang.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,7 @@ manifest:
10831083
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2: v1.59.0
10841084
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2::test_capability_tracing_logs_injection: irrelevant (Tracer doesn't support automatic logs injection)
10851085
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation: v2.5.0-dev
1086+
tests/parametric/test_ffe/test_span_enrichment.py: missing_feature
10861087
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_migrated_extract_invalid: # Modified by easy win activation script
10871088
- declaration: missing_feature (Need to remove b3=b3multi alias)
10881089
component_version: <2.5.0

‎manifests/java.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3645,6 +3645,7 @@ manifest:
36453645
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2: v1.31.0
36463646
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation: v1.56.0
36473647
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation::test_ffe_of7_empty_targeting_key: bug (FFL-1729)
3648+
tests/parametric/test_ffe/test_span_enrichment.py: missing_feature
36483649
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_migrated_extract_invalid: # Modified by easy win activation script
36493650
- declaration: missing_feature (Need to remove b3=b3multi alias)
36503651
component_version: <1.58.2+06122213c8

‎manifests/nodejs.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,7 @@ manifest:
20152015
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2: *ref_4_23_0
20162016
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation: *ref_5_75_0
20172017
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation::test_ffe_of7_empty_targeting_key: bug (FFL-1730)
2018+
tests/parametric/test_ffe/test_span_enrichment.py: "missing_feature (dd-trace-js#8343)"
20182019
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_migrated_extract_invalid: missing_feature (Need to remove b3=b3multi alias)
20192020
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_migrated_extract_valid: missing_feature (Need to remove b3=b3multi alias)
20202021
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_migrated_inject_valid: missing_feature (Need to remove b3=b3multi alias)

‎manifests/php.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ manifest:
732732
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2: '>=1.16.0'
733733
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2::test_tracing_client_tracing_tags: missing_feature
734734
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation: missing_feature
735+
tests/parametric/test_ffe/test_span_enrichment.py: missing_feature
735736
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_migrated_extract_invalid:
736737
- declaration: missing_feature (Need to remove b3=b3multi alias)
737738
component_version: <1.16.0

‎manifests/python.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,6 +1742,7 @@ manifest:
17421742
- declaration: flaky (APMAPI-1400)
17431743
component_version: '>3.7.0'
17441744
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation: v4.0.0
1745+
tests/parametric/test_ffe/test_span_enrichment.py: missing_feature
17451746
tests/parametric/test_headers_b3.py::Test_Headers_B3: v2.8.0
17461747
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_extract_invalid:
17471748
- declaration: irrelevant (Deprecated in 3.x)

‎manifests/ruby.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,7 @@ manifest:
20972097
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2::test_capability_tracing_custom_tags: missing_feature # Created by easy win activation script
20982098
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2::test_tracing_client_tracing_tags: missing_feature # Created by easy win activation script
20992099
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation: v2.23.0
2100+
tests/parametric/test_ffe/test_span_enrichment.py: missing_feature
21002101
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_extract_invalid: # Easy win for all weblogs and version 2.27.0
21012102
- declaration: missing_feature (Missing for 2.x)
21022103
component_version: '>1.99.0'

‎manifests/rust.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ manifest:
102102
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV1_ServiceTargets::test_not_match_service_target: missing_feature # Created by easy win activation script
103103
tests/parametric/test_dynamic_configuration.py::TestDynamicConfigV2: missing_feature # Created by easy win activation script
104104
tests/parametric/test_ffe/test_dynamic_evaluation.py::Test_Feature_Flag_Dynamic_Evaluation: missing_feature
105+
tests/parametric/test_ffe/test_span_enrichment.py: missing_feature
105106
tests/parametric/test_headers_b3.py: '>=0.2.1' # Modified by easy win activation script
106107
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_extract_valid: missing_feature # Created by easy win activation script
107108
tests/parametric/test_headers_b3.py::Test_Headers_B3::test_headers_b3_inject_valid: missing_feature # Created by easy win activation script
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
{
2+
"createdAt": "2024-04-17T19:40:53.716Z",
3+
"format": "SERVER",
4+
"environment": {
5+
"name": "Test"
6+
},
7+
"flags": {
8+
"basic-flag": {
9+
"key": "basic-flag",
10+
"enabled": true,
11+
"variationType": "BOOLEAN",
12+
"variations": {
13+
"on": {
14+
"key": "on",
15+
"value": true
16+
},
17+
"off": {
18+
"key": "off",
19+
"value": false
20+
}
21+
},
22+
"allocations": [
23+
{
24+
"key": "on-allocation",
25+
"rules": [],
26+
"splits": [
27+
{
28+
"variationKey": "on",
29+
"shards": [],
30+
"serialId": 100
31+
}
32+
],
33+
"doLog": true
34+
}
35+
]
36+
},
37+
"experiment-flag": {
38+
"key": "experiment-flag",
39+
"enabled": true,
40+
"variationType": "STRING",
41+
"variations": {
42+
"control": {
43+
"key": "control",
44+
"value": "control"
45+
},
46+
"treatment": {
47+
"key": "treatment",
48+
"value": "treatment"
49+
}
50+
},
51+
"allocations": [
52+
{
53+
"key": "experiment-allocation",
54+
"rules": [],
55+
"splits": [
56+
{
57+
"variationKey": "treatment",
58+
"shards": [],
59+
"serialId": 108
60+
}
61+
],
62+
"doLog": true
63+
}
64+
]
65+
},
66+
"no-log-flag": {
67+
"key": "no-log-flag",
68+
"enabled": true,
69+
"variationType": "BOOLEAN",
70+
"variations": {
71+
"on": {
72+
"key": "on",
73+
"value": true
74+
},
75+
"off": {
76+
"key": "off",
77+
"value": false
78+
}
79+
},
80+
"allocations": [
81+
{
82+
"key": "no-log-allocation",
83+
"rules": [],
84+
"splits": [
85+
{
86+
"variationKey": "on",
87+
"shards": [],
88+
"serialId": 200
89+
}
90+
],
91+
"doLog": false
92+
}
93+
]
94+
},
95+
"multi-serial-flag-1": {
96+
"key": "multi-serial-flag-1",
97+
"enabled": true,
98+
"variationType": "INTEGER",
99+
"variations": {
100+
"v1": {
101+
"key": "v1",
102+
"value": 1
103+
}
104+
},
105+
"allocations": [
106+
{
107+
"key": "allocation-1",
108+
"rules": [],
109+
"splits": [
110+
{
111+
"variationKey": "v1",
112+
"shards": [],
113+
"serialId": 128
114+
}
115+
],
116+
"doLog": true
117+
}
118+
]
119+
},
120+
"multi-serial-flag-2": {
121+
"key": "multi-serial-flag-2",
122+
"enabled": true,
123+
"variationType": "INTEGER",
124+
"variations": {
125+
"v2": {
126+
"key": "v2",
127+
"value": 2
128+
}
129+
},
130+
"allocations": [
131+
{
132+
"key": "allocation-2",
133+
"rules": [],
134+
"splits": [
135+
{
136+
"variationKey": "v2",
137+
"shards": [],
138+
"serialId": 130
139+
}
140+
],
141+
"doLog": true
142+
}
143+
]
144+
}
145+
}
146+
}

0 commit comments

Comments
 (0)