Skip to content

chore: Set Valkey clientName for connection observability#2

Open
vasigorc wants to merge 1 commit into
Bit-Quill:message-queue-elasticache-cleanfrom
vasigorc:message-queue-elasticache-clean
Open

chore: Set Valkey clientName for connection observability#2
vasigorc wants to merge 1 commit into
Bit-Quill:message-queue-elasticache-cleanfrom
vasigorc:message-queue-elasticache-clean

Conversation

@vasigorc
Copy link
Copy Markdown

Addresses review feedback from @atao2004 on vercel#1309:
vercel#1309 (comment)

Sets clientName: "vercel_message_queue_client" on GlideClient.createClient() so the connection is identifiable in CLIENT LIST and monitoring dashboards — useful pattern to demonstrate in a template since users copy it.

Changes

  • app/api/messages/route.ts: add clientName to GlideClientConfiguration
  • __tests__/route.test.ts: regression assertion that createClient is invoked with clientName: "vercel_message_queue_client"

Test plan

  • pnpm test — 26/26 passing locally (vitest, mocked GLIDE client)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant