You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you replace a version of golang.org/x/net for an instrumented google.golang.org/grpc application the offset for struct-fields in that module will not be found, or potentially the wrong version of offset would be returned.
Currently, the offset version is declared across all struct fields within a single module. However, there are instrumentation probes that instrument multiple modules.
For example, google.golang.org/grpc and golang.org/x/net:
Describe the bug
When you replace a version of
golang.org/x/net
for an instrumentedgoogle.golang.org/grpc
application the offset for struct-fields in that module will not be found, or potentially the wrong version of offset would be returned.Currently, the offset version is declared across all struct fields within a single module. However, there are instrumentation probes that instrument multiple modules.
For example,
google.golang.org/grpc
andgolang.org/x/net
:opentelemetry-go-instrumentation/internal/pkg/instrumentation/bpf/google.golang.org/grpc/server/probe.go
Lines 97 to 121 in 580e8ac
To be clear, many of the versions for
golang.org/x/net
don't exist.Proposal
Have the
structfield.ID
and offsets track the module and associate the correct version.The text was updated successfully, but these errors were encountered: