Overrides TraceStateInterface::with
public function with(string $key, string $value) : TraceStateInterface { if (!self::validateMember($this->traceState, $key, $value)) { self::logWarning('Invalid tracestate key/value for: ' . $key); return $this; } $clone = clone $this; $clone->traceState = [ $key => $value, ] + $this->traceState; return $clone; }