Skip to content
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

Show Whole Command on Tracing #3290

Merged
merged 2 commits into from
Mar 18, 2025
Merged

Conversation

rodneyosodo
Copy link
Contributor

This pull request removes previously imposed limits on command handling in the Redis command processing module and adds tests for tracing hooks involving long commands and arguments. In the rediscmd.go file, the constants limiting command count, argument count, and argument length have been removed, allowing the processing of all elements in the input. In the tracing_test.go file, two new tests are introduced to verify that the tracing hooks correctly capture spans for long commands and pipelines.

@ndyakov
Copy link
Collaborator

ndyakov commented Mar 4, 2025

Hello @rodneyosodo , thank you for contributing. Do you have more context on why the limit was added? If no, I can check later this week.

@rodneyosodo
Copy link
Contributor Author

Hello @ndyakov

I don't have context as to why the limit was added.

@ndyakov
Copy link
Collaborator

ndyakov commented Mar 12, 2025

@monkey92t it doesn't look like this can break anything. Do you remember why the limits were introduced?

Truncate version of a long key might not be useful when debugging

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
@monkey92t
Copy link
Collaborator

I think it was just to avoid overly long data that a portion was trimmed, and there’s no other evidence at the moment.

@ndyakov ndyakov self-requested a review March 17, 2025 14:28
@ndyakov
Copy link
Collaborator

ndyakov commented Mar 17, 2025

@monkey92t @rodneyosodo then this looks safe to be merged once the CI completes.

@ndyakov ndyakov merged commit 8269e6a into redis:master Mar 18, 2025
16 checks passed
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