open-telemetry / opentelemetry-go-instrumentation

OpenTelemetry Auto Instrumentation using eBPF
https://opentelemetry.io
Apache License 2.0
482 stars 73 forks source link

Unable to build the binary/ create executable #962

Open YatinChachra opened 1 month ago

YatinChachra commented 1 month ago

package go.opentelemetry.io/auto imports go.opentelemetry.io/auto/internal/pkg/instrumentors imports go.opentelemetry.io/auto/internal/pkg/instrumentors/allocator: build constraints exclude all Go files in /Users/yatin/Downloads/opentelemetry-go-instrumentation-0.7.0-alpha/internal/pkg/instrumentors/allocator internal/pkg/instrumentors/bpf/database/sql/bpf_bpfel_x86.go:147:12: pattern bpf_bpfel_x86.o: no matching files found internal/pkg/instrumentors/bpf/github.com/gin-gonic/gin/bpf_bpfel_x86.go:148:12: pattern bpf_bpfel_x86.o: no matching files found internal/pkg/instrumentors/bpf/google.golang.org/grpc/bpf_bpfel_x86.go:162:12: pattern bpf_bpfel_x86.o: no matching files found internal/pkg/instrumentors/bpf/google.golang.org/grpc/server/bpf_bpfel_x86.go:153:12: pattern bpf_bpfel_x86.o: no matching files found internal/pkg/instrumentors/bpf/net/http/client/bpf_bpfel_x86.go:151:12: pattern bpf_bpfel_x86.o: no matching files found internal/pkg/instrumentors/bpf/net/http/server/bpf_bpfel_x86.go:154:12: pattern bpf_bpfel_x86.o: no matching files found

Can any one help how to get otel-go-instrumentation executable generated ?

damemi commented 1 month ago

Hi @YatinChachra, did you run make build? That should generate the compiled .o files