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

contrib/go-redis/redis: support v7 #606

Closed
kamatama41 opened this issue Mar 1, 2020 · 11 comments
Closed

contrib/go-redis/redis: support v7 #606

kamatama41 opened this issue Mar 1, 2020 · 11 comments
Labels
ack apm:ecosystem contrib/* related feature requests or bugs modules proposal more in depth change that requires full team approval

Comments

@kamatama41
Copy link

kamatama41 commented Mar 1, 2020

go-redis/redis was updated to v7 and it changed its import path to github.com/go-redis/redis/v7. So dd-trace cannot be used with go-redis/redis/v7 by the incompatibility between v7 and earlier versions.

ref: Changelog for go-redis/redis
https://github.com/go-redis/redis/blob/20a182ceb1d1360f9689230d84fa1db47db215f4/CHANGELOG.md#v7

@knusbaum knusbaum added apm:ecosystem contrib/* related feature requests or bugs proposal more in depth change that requires full team approval labels Mar 2, 2020
@knusbaum
Copy link
Contributor

knusbaum commented Mar 2, 2020

Thanks, @kamatama41. We will look at what needs to be done to support go-redis/redis v7.

@knusbaum knusbaum added the ack label Mar 2, 2020
@gbbr gbbr added the modules label Mar 10, 2020
@gbbr
Copy link
Contributor

gbbr commented Mar 10, 2020

This is related to #543. We can't use those import paths yet, before we switch to modules.

I guess this starts to bring the priority of switching to modules to a more higher level. We should consider doing it soon. We will keep track of this in the related issue here: #471

@johejo
Copy link
Contributor

johejo commented Apr 15, 2020

This is the POC using v7 redis.Hook api.
https://gist.github.com/johejo/b82d5fc533596db357ec46ba95b89192

@johejo
Copy link
Contributor

johejo commented May 27, 2020

Hi.
I have created a package that supports v7, v8 of go-redis/redis.
https://github.com/johejo/dd-trace-go-redis
If you are interested, please give it a try.
Bug reports and Pull Requests are welcome.
But I'm just a DataDog user so it is not official support.

@gbbr
Copy link
Contributor

gbbr commented Jun 5, 2020

#672 has been merged, so we should be able to do this work now, if there is still interest. Please see also Please see also #471 (comment)

@dselim
Copy link

dselim commented Jul 6, 2020

Is the plan for go-redis/redis v7 (and future v8) to have a redis.v7 directory along side the current redis in contrib ?

It is my understanding that it was done for echo v4 #543

@gbbr
Copy link
Contributor

gbbr commented Jul 6, 2020

Correct. For each major version we want to have a separate package.

@knusbaum
Copy link
Contributor

There is a PR open for go-redis/redis.v8 #727

@kamatama41
Copy link
Author

kamatama41 commented Feb 19, 2021

I have confirmed dd-trace works on go-redis/redis/v8.
Although v7 is still not supported, it's ok for my case (as we already migrated to v8).

So I will close this issue, thank you very much 😃

@AnhTaFP
Copy link

AnhTaFP commented Feb 24, 2021

Hi,

May I ask if there is still any plan to add support for redis v7? I want to update to v8, but I got some other dependencies on v7 :) I can help adding v7 support if needed.

@knusbaum
Copy link
Contributor

knusbaum commented Sep 2, 2021

@AnhTaFP
This issue was closed earlier, but v7 support is in now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack apm:ecosystem contrib/* related feature requests or bugs modules proposal more in depth change that requires full team approval
Projects
None yet
Development

No branches or pull requests

6 participants