Skip to content

Add tracing hooks for existing connections #3432

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

Closed

Conversation

AllanGuigou
Copy link

@AllanGuigou AllanGuigou commented Jul 15, 2025

Previously InstruementTracing would call newTracingHook with no connString as a default tracing hook, but that was recently removed in v9.8.0 which has caused our clients to lose tracing if connections are created before tracing can be instrumented. In #3433, I've reverted the change to remove the default tracing hook, but a potential solution would be to use ForEachShard to create tracing hooks for any existing connections. This is a breaking change since it requires context, open to feedback if this PR should be moved forward instead of the revert.

Previously the redis/go-redis library would call newTracingHook with
no connString as default tracing, but that was recently removed in 9.8.0
which has caused our clients to lose oteltracing if connections are
created before tracing can be instrumented.
@ndyakov
Copy link
Member

ndyakov commented Jul 16, 2025

Hello @AllanGuigou can you please cleanup the PRs, I can see two opened and the build is failing for both. Thank you.

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