Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit bc08c92

Browse files
Implement w3c trace context (#52)
* basic propagation, no tests * implement basic tests * getter works on multiple header values * make tests to be part of the same class * introduced Tracestate class and field on SpanContext * tracecontext implementation * make TraceContext a default * added a few TODOs * addressed PR feedback * better disposing * make string Length calculations into constants * fix race in http out tests * few more W3C test cases fixed * all except 1 W3C test cases passed * strictly enforce stylecop rule for the new projects * make documentation file requirement optional so linux build will not fail
1 parent c5ad7a4 commit bc08c92

File tree

58 files changed

+1258
-332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1258
-332
lines changed

OpenCensus.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{7CB2F02E
2121
build\Common.prod.props = build\Common.prod.props
2222
build\Common.test.props = build\Common.test.props
2323
build\debug.snk = build\debug.snk
24+
build\OpenCensus.prod.loose.ruleset = build\OpenCensus.prod.loose.ruleset
2425
build\OpenCensus.prod.ruleset = build\OpenCensus.prod.ruleset
2526
build\OpenCensus.test.ruleset = build\OpenCensus.test.ruleset
2627
build\stylecop.json = build\stylecop.json
Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RuleSet Name="OpenCensus SDK Rules" Description="Open Census SDK ruleset for product code." ToolsVersion="15.0">
3+
<Localization ResourceAssembly="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.dll" ResourceBaseName="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.Localized">
4+
<Name Resource="OpenCensusSDKRules_Name" />
5+
<Description Resource="OpenCensusSDKRules_Description" />
6+
</Localization>
7+
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
8+
<Rule Id="SA1000" Action="Warning" />
9+
<Rule Id="SA1001" Action="Warning" />
10+
<Rule Id="SA1002" Action="Warning" />
11+
<Rule Id="SA1003" Action="Warning" />
12+
<Rule Id="SA1004" Action="Warning" />
13+
<Rule Id="SA1005" Action="Warning" />
14+
<Rule Id="SA1006" Action="Warning" />
15+
<Rule Id="SA1007" Action="Warning" />
16+
<Rule Id="SA1008" Action="Warning" />
17+
<Rule Id="SA1009" Action="Warning" />
18+
<Rule Id="SA1010" Action="Warning" />
19+
<Rule Id="SA1011" Action="Warning" />
20+
<Rule Id="SA1012" Action="Warning" />
21+
<Rule Id="SA1013" Action="Warning" />
22+
<Rule Id="SA1014" Action="Warning" />
23+
<Rule Id="SA1015" Action="Warning" />
24+
<Rule Id="SA1016" Action="Warning" />
25+
<Rule Id="SA1017" Action="Warning" />
26+
<Rule Id="SA1018" Action="Warning" />
27+
<Rule Id="SA1019" Action="Warning" />
28+
<Rule Id="SA1020" Action="Warning" />
29+
<Rule Id="SA1021" Action="Warning" />
30+
<Rule Id="SA1022" Action="Warning" />
31+
<Rule Id="SA1023" Action="Warning" />
32+
<Rule Id="SA1024" Action="Warning" />
33+
<Rule Id="SA1025" Action="Warning" />
34+
<Rule Id="SA1026" Action="Warning" />
35+
<Rule Id="SA1027" Action="Warning" />
36+
<Rule Id="SA1028" Action="None" />
37+
<Rule Id="SA1100" Action="Warning" />
38+
<Rule Id="SA1101" Action="Warning" />
39+
<Rule Id="SA1102" Action="Warning" />
40+
<Rule Id="SA1103" Action="Warning" />
41+
<Rule Id="SA1104" Action="Warning" />
42+
<Rule Id="SA1105" Action="Warning" />
43+
<Rule Id="SA1106" Action="Warning" />
44+
<Rule Id="SA1107" Action="Warning" />
45+
<Rule Id="SA1108" Action="Warning" />
46+
<Rule Id="SA1110" Action="Warning" />
47+
<Rule Id="SA1111" Action="Warning" />
48+
<Rule Id="SA1112" Action="Warning" />
49+
<Rule Id="SA1113" Action="None" />
50+
<Rule Id="SA1114" Action="None" />
51+
<Rule Id="SA1115" Action="Warning" />
52+
<Rule Id="SA1116" Action="None" />
53+
<Rule Id="SA1117" Action="None" />
54+
<Rule Id="SA1118" Action="None" />
55+
<Rule Id="SA1119" Action="Warning" />
56+
<Rule Id="SA1120" Action="Warning" />
57+
<Rule Id="SA1121" Action="None" />
58+
<Rule Id="SA1122" Action="Warning" />
59+
<Rule Id="SA1123" Action="Warning" />
60+
<Rule Id="SA1124" Action="None" />
61+
<Rule Id="SA1125" Action="Warning" />
62+
<Rule Id="SA1127" Action="None" />
63+
<Rule Id="SA1128" Action="None" />
64+
<Rule Id="SA1129" Action="None" />
65+
<Rule Id="SA1130" Action="Warning" />
66+
<Rule Id="SA1131" Action="None" />
67+
<Rule Id="SA1132" Action="None" />
68+
<Rule Id="SA1133" Action="Warning" />
69+
<Rule Id="SA1134" Action="None" />
70+
<Rule Id="SA1200" Action="Warning" />
71+
<Rule Id="SA1201" Action="Warning" />
72+
<Rule Id="SA1202" Action="Warning" />
73+
<Rule Id="SA1203" Action="Warning" />
74+
<Rule Id="SA1204" Action="Warning" />
75+
<Rule Id="SA1205" Action="Warning" />
76+
<Rule Id="SA1206" Action="Warning" />
77+
<Rule Id="SA1207" Action="Warning" />
78+
<Rule Id="SA1208" Action="Warning" />
79+
<Rule Id="SA1209" Action="Warning" />
80+
<Rule Id="SA1210" Action="Warning" />
81+
<Rule Id="SA1211" Action="Warning" />
82+
<Rule Id="SA1212" Action="Warning" />
83+
<Rule Id="SA1213" Action="Warning" />
84+
<Rule Id="SA1214" Action="Warning" />
85+
<Rule Id="SA1216" Action="Warning" />
86+
<Rule Id="SA1217" Action="Warning" />
87+
<Rule Id="SA1300" Action="Warning" />
88+
<Rule Id="SA1302" Action="Warning" />
89+
<Rule Id="SA1303" Action="Warning" />
90+
<Rule Id="SA1304" Action="Warning" />
91+
<Rule Id="SA1306" Action="Warning" />
92+
<Rule Id="SA1307" Action="Warning" />
93+
<Rule Id="SA1308" Action="Warning" />
94+
<Rule Id="SA1309" Action="Warning" />
95+
<Rule Id="SA1310" Action="Warning" />
96+
<Rule Id="SA1311" Action="Warning" />
97+
<Rule Id="SA1312" Action="Warning" />
98+
<Rule Id="SA1313" Action="Warning" />
99+
<Rule Id="SA1400" Action="Warning" />
100+
<Rule Id="SA1401" Action="None" />
101+
<Rule Id="SA1402" Action="Warning" />
102+
<Rule Id="SA1403" Action="Warning" />
103+
<Rule Id="SA1404" Action="Warning" />
104+
<Rule Id="SA1405" Action="Warning" />
105+
<Rule Id="SA1406" Action="Warning" />
106+
<Rule Id="SA1407" Action="Warning" />
107+
<Rule Id="SA1408" Action="Warning" />
108+
<Rule Id="SA1410" Action="Warning" />
109+
<Rule Id="SA1411" Action="Warning" />
110+
<Rule Id="SA1500" Action="Warning" />
111+
<Rule Id="SA1501" Action="Warning" />
112+
<Rule Id="SA1502" Action="Warning" />
113+
<Rule Id="SA1503" Action="Warning" />
114+
<Rule Id="SA1504" Action="Warning" />
115+
<Rule Id="SA1505" Action="Warning" />
116+
<Rule Id="SA1506" Action="Warning" />
117+
<Rule Id="SA1507" Action="Warning" />
118+
<Rule Id="SA1508" Action="Warning" />
119+
<Rule Id="SA1509" Action="Warning" />
120+
<Rule Id="SA1510" Action="Warning" />
121+
<Rule Id="SA1511" Action="Warning" />
122+
<Rule Id="SA1512" Action="None" />
123+
<Rule Id="SA1513" Action="Warning" />
124+
<Rule Id="SA1514" Action="Warning" />
125+
<Rule Id="SA1515" Action="None" />
126+
<Rule Id="SA1516" Action="Warning" />
127+
<Rule Id="SA1517" Action="Warning" />
128+
<Rule Id="SA1518" Action="Warning" />
129+
<Rule Id="SA1519" Action="Warning" />
130+
<Rule Id="SA1520" Action="Warning" />
131+
<Rule Id="SA1600" Action="None" />
132+
<Rule Id="SA1601" Action="Warning" />
133+
<Rule Id="SA1602" Action="Warning" />
134+
<Rule Id="SA1604" Action="Warning" />
135+
<Rule Id="SA1605" Action="Warning" />
136+
<Rule Id="SA1606" Action="Warning" />
137+
<Rule Id="SA1607" Action="Warning" />
138+
<Rule Id="SA1608" Action="Warning" />
139+
<Rule Id="SA1610" Action="Warning" />
140+
<Rule Id="SA1611" Action="Warning" />
141+
<Rule Id="SA1612" Action="Warning" />
142+
<Rule Id="SA1613" Action="Warning" />
143+
<Rule Id="SA1614" Action="Warning" />
144+
<Rule Id="SA1615" Action="None" />
145+
<Rule Id="SA1616" Action="Warning" />
146+
<Rule Id="SA1617" Action="Warning" />
147+
<Rule Id="SA1618" Action="None" />
148+
<Rule Id="SA1619" Action="Warning" />
149+
<Rule Id="SA1620" Action="Warning" />
150+
<Rule Id="SA1621" Action="Warning" />
151+
<Rule Id="SA1622" Action="Warning" />
152+
<Rule Id="SA1623" Action="Warning" />
153+
<Rule Id="SA1624" Action="Warning" />
154+
<Rule Id="SA1625" Action="Warning" />
155+
<Rule Id="SA1626" Action="Warning" />
156+
<Rule Id="SA1627" Action="Warning" />
157+
<Rule Id="SA1633" Action="Error" />
158+
<Rule Id="SA1634" Action="Warning" />
159+
<Rule Id="SA1635" Action="Warning" />
160+
<Rule Id="SA1636" Action="None" />
161+
<Rule Id="SA1637" Action="Warning" />
162+
<Rule Id="SA1638" Action="Warning" />
163+
<Rule Id="SA1640" Action="Warning" />
164+
<Rule Id="SA1641" Action="Warning" />
165+
<Rule Id="SA1642" Action="None" />
166+
<Rule Id="SA1643" Action="Warning" />
167+
<Rule Id="SA1648" Action="Warning" />
168+
<Rule Id="SA1649" Action="Warning" />
169+
<Rule Id="SA1651" Action="Warning" />
170+
<Rule Id="SA1652" Action="Warning" />
171+
</Rules>
172+
</RuleSet>

0 commit comments

Comments
 (0)