Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutating of trace state #108

Merged
merged 3 commits into from
Apr 18, 2018
Merged

Conversation

SergeyKanzhelev
Copy link
Member

#93


## Base mutations

Library or platform receiving `traceparent` request header MUST send it to outgoing requests. It MAY mutate the value of this header before passing to outgoing requests.
Copy link
Member

Choose a reason for hiding this comment

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

Why MAY mutate instead of SHOULD?

@codefromthecrypt
Copy link

codefromthecrypt commented Apr 17, 2018 via email

@SergeyKanzhelev
Copy link
Member Author

Yes, MAY was for the pass-thru. I was thinking to make it more radical and suggest that if traceparent was not mutated - tracestate shouldn't be either. One exception may be when proxy wants to tall something about itself. Like some identifier of a proxy.

Anybody knows real life scenarios when pass-thru for traceparent doesn't mean pass-thru for the tracestate?

@SergeyKanzhelev
Copy link
Member Author

Posted an update. @adriancole @yurishkuro appreciate feedback.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

I prefer to separate the players into pass-through only and participating. The former must not mutate. The later must mutate the parent.

The reason MAY bothers me is that it leaves the standard vague. A node can be screwing the overall trace and still be compliant.

@SergeyKanzhelev
Copy link
Member Author

@yurishkuro I added this paragraph. Is it what you think needed?

If the value of traceparent field wasn't changed before propagation - tracestate MUST NOT be modified as well. Unmodified headers propagation is typically implemented in a pass-thru services like proxies. This behavior may also be implemented in a services which currently does not collect distributed tracing information.

@SergeyKanzhelev
Copy link
Member Author

@adriancole I'd appreciate sign off as I can only merge after one contributor approval.

@bogdandrutu
Copy link
Contributor

@SergeyKanzhelev done 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants