Skip to content

Commit a4c4914

Browse files
feat: add CLIENT SETNAME to all Valkey connections in example
Set clientName on GlideClient.createClient and the resumable-streams clientConfig so all connections (task store + stream subscriptions) are identifiable in CLIENT LIST, monitoring dashboards, and CloudWatch metrics. Signed-off-by: Riley Des <riley.desserre@improving.com>
1 parent d7306dd commit a4c4914

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎examples/with-valkey-store/src/index.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ if (!Number.isInteger(port) || port < 1 || port > 65535) {
2929
async function main() {
3030
const valkeyClient = await GlideClient.createClient({
3131
addresses: [{ host, port }],
32+
clientName: "voltagent_a2a_store_client",
3233
});
3334
logger.info(`Connected to Valkey at ${host}:${port}`);
3435

@@ -40,7 +41,7 @@ async function main() {
4041

4142
const streamStore = await createResumableStreamValkeyStore({
4243
client: valkeyClient,
43-
clientConfig: { addresses: [{ host, port }] },
44+
clientConfig: { addresses: [{ host, port }], clientName: "voltagent_a2a_stream_client" },
4445
keyPrefix: "example-streams",
4546
ttlSeconds: 600,
4647
});

0 commit comments

Comments
 (0)