odigos-io / opentelemetry-go-instrumentation

OpenTelemetry auto-instrumentation for Go applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doubt about trace ID

EvanLjp opened this issue · comments

commented

After read the whole codes, I don't find any codes to send the trace ID in the different services. May be I don't find it. Could you share the parts for me? Thanks a lot ~

Hi, if you are referring to context propagation (sending trace id over request headers), we just released that.
Please check out v0.6.0

commented

Thx a lot, there was no code for that at the time I asked. I would read the related PRs.

I guess relates code is here

https://github.com/keyval-dev/opentelemetry-go-instrumentation/blob/483a2658fbf4d58ae0ef997709c0fac44966bf99/pkg/instrumentors/bpf/google/golang/org/grpc/bpf/probe.bpf.c#L150-L157

append_item_to_slice will do writing