-
Notifications
You must be signed in to change notification settings - Fork 45
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
How to add request-id/trace-id to http request header? #37
Comments
Hi @yfractal Both of these tasks (HTTP client support + appending to maps) are on our roadmap and will be implemented in future versions. If you would like to help, we will be happy to accept a PR 😄 |
Thanks edeNFed, I will try to figure how to do this, but I'm not sure when I can achieve this, I'm short of knowledge both C, eBPF and golang 😂 |
No worries, this will be added very soon |
Really great, thanks edeNFed! |
looking forward! |
Feature request
Allow opentelemetry-go-instrumentation trace http requests.
How to implement?
A Golang project may send http request to other servers through Golang net/request, for doing distributed tracing need to add the trace id in http headers.
The header is a map https://cs.opensource.google/go/go/+/refs/tags/go1.19.2:src/net/http/request.go;l=148.
If we do this through
uprobe
, we need edit a Golang map.So how could we do this? Or do we have other options?
I guess eBPF program can't call a user's function easily, so we have to mange the memory, but map is complex, not sure how to do this.
Maybe we can calculate where we can put the key/value pair(we know the key and can know the length of value), and use the result to do memory management?
The text was updated successfully, but these errors were encountered: