[Feature Request] Tag Valkey connections with a library-name suffix (CLIENT SETINFO LIB-NAME)
Problem Description
Agno's Valkey storage (agno.db.valkey) and vector DB (agno.vectordb.valkey) both build a valkey-glide-sync client. Glide already announces itself to the server with CLIENT SETINFO LIB-NAME GlidePySync, but nothing in that value says the connection came from Agno — so on a shared Valkey, or in managed-service connection telemetry, Agno traffic is indistinguishable from any other Python app using Glide.
The existing client_name values (agno_db_client, agno_vectordb_client) don't close the gap: CLIENT SETNAME is a separate field and isn't what server-side library telemetry reads.
Proposed Solution
Glide 2.5.2 added a client_info_tag option that appends a suffix to the library name it sends, so the server sees GlidePySync(agno) instead of plain GlidePySync. Two small changes:
Raise the floor in
libs/agno/pyproject.toml:valkey-glide-sync>=2.1.0→>=2.5.2. The parameter doesn't exist in earlier releases, so the floor has to move with it.Set the tag at the two places Agno constructs a client:
libs/agno/agno/db/valkey/valkey.py—ValkeyDb.__init__libs/agno/agno/vectordb/valkey/valkeydb.py—ValkeyDb._get_client
config = GlideClientConfiguration( addresses=[NodeAddress(host=host, port=port)], ... client_name=client_name, client_info_tag="agno", )
client_name stays exactly as it is. This is connection metadata only — no change to commands, data layout or behaviour. I'd verify it by checking CLIENT LIST LIB-NAME 'GlidePySync(agno)' against a live server for both adapters.
Is the dependency floor bump acceptable to you? If so I'm happy to open the PR.
Alternatives Considered
- Relying on
client_namealone: it's a different field (CLIENT SETNAME) and isn't captured by library-level telemetry. - Overriding the library name outright: that would erase the
GlidePySyncbase and lose the client-library information the field exists to carry.client_info_tagappends instead of replacing.
Additional Context
- Glide release that added the option: https://github.com/valkey-io/valkey-glide/releases/tag/v2.5.2
- Follows on from #8117 / #8141, which added
client_nameto these same two constructors. - Clients passed in by the caller (
valkey_client=/glide_client=) are left untouched — the tag only applies to connections Agno builds itself.
Would you like to work on this?
- Yes, I’d love to work on it!
- I’m open to collaborating but need guidance.
- No, I’m just sharing the idea.
Source: agno-agi/agno