You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #159 was merged, sampler decisions are ignored (even AlwaysOffSampler) as the default span context is force enabled. It intended to solve a valid use-case but now every span context is force enabled. Unless you manually send a span context with o=0.
A quick and dirty solution could be changing trace_options.DEFAULT and span_context.DEFAULT_OPTIONS to '0'. Better yet, the default context should set o to int(sampler.should_sample(...)). However, neither solves that o=0 does not disable tracing.
The text was updated successfully, but these errors were encountered:
Furthermore, GoogleCloudFormatPropagator's to_header wrongfully serializes the span context when the span_id is None (it happens) which breaks propagation of tracing options.
A fix would be something like this:
I still have no better solution for the original issue than passing the sampler to the propagator and setting the tracing options to self.sampler.should_sample(...) by default.
Since #159 was merged, sampler decisions are ignored (even AlwaysOffSampler) as the default span context is force enabled. It intended to solve a valid use-case but now every span context is force enabled. Unless you manually send a span context with
o=0
.A quick and dirty solution could be changing
trace_options.DEFAULT
andspan_context.DEFAULT_OPTIONS
to'0'
. Better yet, the default context should seto
toint(sampler.should_sample(...))
. However, neither solves thato=0
does not disable tracing.The text was updated successfully, but these errors were encountered: