Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Tracestate header not generated or mutated #1271

Open
dschanoeh opened this issue Sep 16, 2021 · 0 comments
Open

Tracestate header not generated or mutated #1271

dschanoeh opened this issue Sep 16, 2021 · 0 comments
Labels

Comments

@dschanoeh
Copy link

What version of OpenCensus are you using?

v0.22.3

What version of Go are you using?

1.16

What did you do?

Configured opencensus-go with W3C tracecontext propagation and created a new span with StartSpanWithRemoteParent().

What did you expect to see?

A traceparent header should be generated (or mutated if one already existed)
A tracestate header should be generated (or mutated if one already existed)

What did you see instead?

A traceparent header is generated, containing the trace ID and a new span ID,
but the tracestate header is just passed through 1:1 or not generated at all if it wasn't part of the incoming request.

Additional context

While this doesn't go against the W3C spec, a tracestate should be generated/mutated.
Also, I don't see the functionality in the library to manually do this since the whole generation/mutation process is somewhat hidden to the caller (but maybe I'm missing something here). If that's possible already, a pointer to how this is supposed to be used would be greatly appreciated.

@dschanoeh dschanoeh added the bug label Sep 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant