-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(redisotel): fix the situation of reporting spans multiple times #3168
base: master
Are you sure you want to change the base?
Conversation
flc1125
commented
Oct 23, 2024
![image](https://private-user-images.githubusercontent.com/14297703/379235824-2154c06b-2101-44ed-ac9d-0cfd426db5f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NjU3MjYsIm5iZiI6MTczODk2NTQyNiwicGF0aCI6Ii8xNDI5NzcwMy8zNzkyMzU4MjQtMjE1NGMwNmItMjEwMS00NGVkLWFjOWQtMGNmZDQyNmRiNWYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDIxNTcwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIxZjcxNWIwNDViZTc5OGQ1NzkxODdhNWIzNDlhNmMwNmFhMmVkZDkxODNmYzU2YjExODc3ODliOGU2Y2M4NzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OxABuJeyhBTRD1pDcF2VzlDqQZWtjZscSq9XmCP-YQY)
Hello, @flc1125, thanks for contributing. Would you mind describing the issue that you are trying to fix in more details:
And please add some tests if possible. |
OK, I am on vacation, I will deal with this issue when I have free time. |
Additionally, as a supplementary inquiry, I would like to understand the following information:
|
I am on the same boat as you and still trying to figure out if we have any blockers to upgrade to a newer Go version. I do think @monkey92t or @vmihailenco can share if they need this library to keep 1.18 as a minimum go version.
No need to add another assert library, we do use a fork of https://onsi.github.io/gomega/ and I hope to soon actually have the official https://onsi.github.io/gomega/ . Both questions are kind of related, if we are fine to update the go version we may try to move to the official https://onsi.github.io/gomega/ and https://onsi.github.io/ginkgo/ libraries. |
I still don't understand how and why this issue occurred. Does removing the hooks break anything else or is it a safe fix. Again, maybe @monkey92t has more experience with the otel codebaase in go-redis. |
That's not the case, it's just an additional optimization. You can ignore this issue. 😄 |
In the cluster architecture, when a Redis command is initiated, it will generate two spans of the link due to the repeated Hook. But I think one span should be enough actually.
I think I can't answer this question, maybe need to consult the author at that time. This is an early PR: #2244 @vmihailenco Please help, and see if you can answer this question.
Since it cancelled a link, it is a disruptive change. But I think it might be a defect rather than a function. It should be fixed. After the above conclusions are drawn, I will combine the results to conduct supplementary tests. |