Skip to content

Set client lib-name to GlideSpringDataValkey - #87

Merged
Aryex merged 2 commits into
mainfrom
alexl/set-libname
Jun 1, 2026
Merged

Set client lib-name to GlideSpringDataValkey#87
Aryex merged 2 commits into
mainfrom
alexl/set-libname

Conversation

@Aryex

@Aryex Aryex commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Overivew

This PR set the reported lib-name to GlideSpringDataValkey.

Two small sanity tests were added.

Related Issues

#81

Signed-off-by: Alex Le <alex.le@improving.com>
Signed-off-by: Alex Le <alex.le@improving.com>
configBuilder.subscriptionConfiguration(subConfigBuilder.build());

// Set library name for server-side client identification
configBuilder.libName("GlideSpringDataValkey");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me that Spring Data Valkey would override the underlying Java driver (i.e. GlideJava to GlideSpringDataValkey). The Jedis compat layer does something similar. Although would like @jamesx-improving to confirm this is correct.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's definitely arguable to say the least. I would push back on the Jedis comp layer case if I had the chance, as it introduced a precedent that a wrapper using glide underneath could claim its own lib-name, opening the door for future outer wrapper to change their lib-name as well, which would be an endless situation.

Of course I don't have the final say here, and I'm open to counterarguments.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reviewing existing lib names, I think setting lib name for Spring Data Valkey makes sense. Users can still set client name (which we don't set), and we maintain observability into which specific client/library is being used for devops.

@Aryex
Aryex marked this pull request as ready for review May 29, 2026 22:41
@Aryex
Aryex merged commit 6b30124 into main Jun 1, 2026
22 checks passed
@jeremyprime
jeremyprime deleted the alexl/set-libname branch June 2, 2026 15:43
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.

3 participants