opencensus-go icon indicating copy to clipboard operation
opencensus-go copied to clipboard

Introduce IsRemoteTrusted option to trace.StartOptions

Open rakyll opened this issue 6 years ago • 1 comments

We currently provide an option for the gRPC and HTTP entry points but it is common case for users to not to trust the incoming trace ID. Rather than providing this option at integration points, provide it on the trace.StartOptions.

    // IsPublicEndpoint should be set to true for publicly accessible HTTP(S)
    // servers. If true, any trace metadata set on the incoming request will
    // be added as a linked trace instead of being added as a parent of the
    // current trace.
    IsPublicEndpoint bool

rakyll avatar Apr 04 '18 18:04 rakyll

We can do this without breaking the API by just deprecating the old way instead of removing it immediately. Removing the api-breaking tag.

semistrict avatar May 07 '18 21:05 semistrict