/** @see TraceContext#sampled() */ public Builder sampled(boolean sampled) { flags = InternalPropagation.sampled(sampled, flags); return this; }
/** @see TraceIdContext#sampled() */ public Builder sampled(boolean sampled) { flags = InternalPropagation.sampled(sampled, flags); return this; }
/** @see SamplingFlags#sampled() */ public Builder sampled(@Nullable Boolean sampled) { if (sampled == null) { flags &= ~(FLAG_SAMPLED_SET | FLAG_SAMPLED); return this; } flags = InternalPropagation.sampled(sampled, flags); return this; }
public TraceContextOrSamplingFlags sampled(boolean sampled) { int flags = InternalPropagation.sampled(sampled, value.flags); if (flags == value.flags) return this; // save effort if no change return withFlags(flags); }
flags = InternalPropagation.sampled(sampler.isSampled(traceId), flags);
flags = InternalPropagation.sampled(sampler.isSampled(context.traceId()), flags); } else if ((flags & FLAG_SAMPLED) == FLAG_SAMPLED) {
/** @see TraceIdContext#sampled() */ public Builder sampled(boolean sampled) { flags = InternalPropagation.sampled(sampled, flags); return this; }
/** @see TraceContext#sampled() */ public Builder sampled(boolean sampled) { flags = InternalPropagation.sampled(sampled, flags); return this; }
/** @see SamplingFlags#sampled() */ public Builder sampled(@Nullable Boolean sampled) { if (sampled == null) { flags &= ~(FLAG_SAMPLED_SET | FLAG_SAMPLED); return this; } flags = InternalPropagation.sampled(sampled, flags); return this; }
public TraceContextOrSamplingFlags sampled(boolean sampled) { int flags = InternalPropagation.sampled(sampled, value.flags); if (flags == value.flags) return this; // save effort if no change return withFlags(flags); }
flags = InternalPropagation.sampled(sampler.isSampled(traceId), flags);
flags = InternalPropagation.sampled(sampler.isSampled(context.traceId()), flags); } else if ((flags & FLAG_SAMPLED) == FLAG_SAMPLED) {