Skip to content

Log CQL request ID for distributed tracing #151

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukasz-antoniak
Copy link
Collaborator

@lukasz-antoniak lukasz-antoniak commented Jun 17, 2025

Support creation of unique request ID in CQL Proxy to enable end-to-end tracing.

Features:

  • Optionally enable sending unique request ID in custom_payload field for each CQL request
  • Do not override request ID generated by the driver
  • Log request ID in hexadecimal format to support non-printable characters

@lukasz-antoniak lukasz-antoniak marked this pull request as ready for review July 17, 2025 10:28
@lukasz-antoniak lukasz-antoniak requested a review from mpenick as a code owner July 17, 2025 10:28
} else {
reqId = id
}
c.proxy.logger.Info("received request id", zap.String("idHex", hex.EncodeToString(reqId)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

"received request id" seems a bit confusing because it might be generated in the router. Should it be differentiated?

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