odigos-io / opentelemetry-go-instrumentation

OpenTelemetry auto-instrumentation for Go applications
Apache License 2.0
292 stars 44 forks source link

Doubt about trace ID #29

Closed EvanLjp closed 2 years ago

EvanLjp commented 2 years ago

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 ~

edeNFed commented 2 years ago

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

yfractal commented 2 years ago

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

EvanLjp commented 2 years ago

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