Skip to content

Add Redis client self-identification for Apache Airflow#61866

Open
vchomakov wants to merge 1 commit intoapache:mainfrom
vchomakov:redis-client-identification
Open

Add Redis client self-identification for Apache Airflow#61866
vchomakov wants to merge 1 commit intoapache:mainfrom
vchomakov:redis-client-identification

Conversation

@vchomakov
Copy link

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?
  • Yes (please specify the tool below)

Generated-by: Augment Code following the guidelines

@boring-cyborg
Copy link

boring-cyborg bot commented Feb 13, 2026

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

@potiuk potiuk force-pushed the redis-client-identification branch from 3c61e50 to 33cb2e3 Compare February 16, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant