-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make all test cases in W3C trace-context test suite pass (#1668)
* Fixing errors in W3CTraceContextTests * Fix test_tracestate_key_illegal_vendor_format and test_tracestate_key_length_limit (cherry picked from commit 5a2bd56c8f83b8e9094534084988992184f4fe7e) * update test run result (cherry picked from commit 4e23f9aec69c59affb27327e0a624b32a82317cc) * Fix test_traceparent_version_0x00 and test_traceparent_version_0xff Note: the bug was introduced in https://github.com/open-telemetry/opentelemetry-dotnet/pull/923/files#diff-670edb2ea7fa1212aab16a9f732dad8b1e2f15801a3eac1bd0824385355d7d97L262 * Validate key with Trace Context v1 https://www.w3.org/TR/trace-context-1/ which has W3C Recommendation status. * Refactor validator for lower case alpha and digit * Fix bug in vendor parsing and vendor valid character check. * Fix typo and add link where magic numbers are defined. * Adding comments * Update comment * Reuse OWS (Optional Whitespace characters). Utilize return value of HashSet.Add. Forbid upper case in traceparent string. * Use Span and Slice instead of string.Split * Remove unused OptionalWhiteSpaceCharacters variable Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
- Loading branch information
1 parent
e24dccb
commit c188edb
Showing
4 changed files
with
525 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.