Skip to content

Conversation

@Meir017
Copy link
Contributor

@Meir017 Meir017 commented Jul 23, 2025

related #2899

Migrates Redis server endpoint logging from string interpolation to LoggerMessage attributes for better performance and structured logging support.

Adds 14 new LoggerMessage methods for server connection lifecycle events including handshake, authentication, configuration, and buffer operations.

Uses ServerEndPointLogValue wrapper to ensure consistent server representation in logs while maintaining type safety.

github-copilot prompt used:
image

Migrates Redis server endpoint logging from string interpolation to LoggerMessage attributes for better performance and structured logging support.

Adds 14 new LoggerMessage methods for server connection lifecycle events including handshake, authentication, configuration, and buffer operations.

Uses ServerEndPointLogValue wrapper to ensure consistent server representation in logs while maintaining type safety.
@mgravell
Copy link
Collaborator

  • CodeQL is false positive - no delta, I'll override
  • rerunning tests, presumably CI noise
  • minor query / suggestion, as above

Other than that: looks great, thanks

Copy link
Collaborator

@mgravell mgravell left a comment

Choose a reason for hiding this comment

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

tie-breaker NRE?
target-type new(...)?

if neither make sense: let me know

@Meir017
Copy link
Contributor Author

Meir017 commented Jul 23, 2025

I'll add these changes

Changes parameter type from string to RedisKey in logging method to maintain type consistency throughout the tie-breaker request flow.

Simplifies object instantiation using target-typed new expression.
@Meir017
Copy link
Contributor Author

Meir017 commented Jul 23, 2025

@mgravell ready

@mgravell
Copy link
Collaborator

LGTM, thanks

@mgravell mgravell merged commit bf972cc into StackExchange:main Jul 23, 2025
6 checks passed
@Meir017 Meir017 deleted the chore/logger-message-attribute branch July 23, 2025 15:37
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.

2 participants