-
-
Couldn't load subscription status.
- Fork 1.7k
feat(node): Add maxCacheKeyLength to Redis integration (remove truncation)
#18045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some general tests for the handler, as there were none for this behavior so far.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Redis Key Length Check Fails
The span.updateName logic uses a truthy check for _redisOptions.maxCacheKeyLength. When maxCacheKeyLength is 0, the span name isn't truncated, which is unexpected as it should become an empty string.
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
This removes the automatic truncation of the span description. Now, all cache keys are set in the description.
part of #17389