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

Tracestate header not generated or mutated #1271

Open
@dschanoeh

Description

@dschanoeh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions