vchomakov opened a new pull request, #61866:
URL: https://github.com/apache/airflow/pull/61866

   Add Redis client self-identification for Apache Airflow's Redis provider, 
allowing Redis servers to identify Airflow connections via the `CLIENT INFO` 
command.
   
   This implementation follows the Redis documentation recommendation for 
client libraries (https://redis.io/docs/latest/commands/client-setinfo/) and 
uses a dual approach for compatibility:
   - Uses `DriverInfo` class for redis-py 5.1.0+ to add "apache-airflow" as 
upstream driver
   - Falls back to `lib_name` parameter for older redis-py versions
   
   This makes it easier for Redis administrators to monitor and debug 
connections from Airflow.
   
   **Changes:**
   - Modified `RedisHook.get_conn()` to include driver identification
   - Added tests to verify driver info is included correctly
   - All tests pass, all linting checks pass
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Augment Code following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to