Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Improve W3C Trace Context compliance#343

Merged
reyang merged 4 commits intocensus-instrumentation:masterfrom
reyang:tracecontext
Oct 17, 2018
Merged

Improve W3C Trace Context compliance#343
reyang merged 4 commits intocensus-instrumentation:masterfrom
reyang:tracecontext

Conversation

@reyang
Copy link
Copy Markdown
Contributor

@reyang reyang commented Oct 9, 2018

With this change, the W3C distributed tracing implementation would have 100% pass rate for https://github.com/w3c/distributed-tracing/tree/master/test.

This PR is similar to the PR for OpenCensus Go census-instrumentation/opencensus-go@ae11cd0.

@songy23 songy23 requested a review from liyanhui1228 October 9, 2018 16:09
@reyang reyang requested a review from c24t October 11, 2018 20:59
tracestate = TracestateStringFormatter().from_string(header)
if tracestate.is_valid():
span_context.tracestate = \
TracestateStringFormatter().from_string(header)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

span_context.tracestate = tracestate

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Copy Markdown

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@reyang reyang merged commit 2aef803 into census-instrumentation:master Oct 17, 2018
@reyang reyang deleted the tracecontext branch October 23, 2018 19:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants