Skip to content

Commit 0e4c74b

Browse files
authored
Update to latest version of our otel library fork. (#2996)
This entails a refactor of how we get kernel frames -- these are now just communicated via FrameMetadata, the same was as normal frames.
1 parent 48f7888 commit 0e4c74b

File tree

15 files changed

+170
-142
lines changed

15 files changed

+170
-142
lines changed

bump-fork.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
go mod edit -replace github.com/open-telemetry/opentelemetry-ebpf-profiler=github.com/parca-dev/opentelemetry-ebpf-profiler@latest
2+
go mod edit -replace go.opentelemetry.io/ebpf-profiler=github.com/parca-dev/opentelemetry-ebpf-profiler@latest
33
go mod tidy

flags/flags.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ import (
2222
"time"
2323

2424
"github.com/alecthomas/kong"
25-
cebpf "github.com/cilium/ebpf"
26-
"github.com/open-telemetry/opentelemetry-ebpf-profiler/tracer"
25+
"go.opentelemetry.io/ebpf-profiler/tracer"
2726
log "github.com/sirupsen/logrus"
2827
_ "google.golang.org/grpc/encoding/proto"
2928
)
@@ -67,7 +66,6 @@ func Parse() (Flags, error) {
6766
"default_cpu_sampling_frequency": strconv.Itoa(defaultCPUSamplingFrequency),
6867
"default_map_scale_factor": strconv.Itoa(defaultMapScaleFactor),
6968
"max_map_scale_factor": strconv.Itoa(maxMapScaleFactor),
70-
"default_bpf_log_size": strconv.Itoa(cebpf.DefaultVerifierLogSize),
7169
"default_memlock_rlimit": "0", // No limit by default. (flag is deprecated)
7270
})
7371

@@ -343,5 +341,5 @@ type FlagsBPF struct {
343341
EventsBufferSize uint32 `default:"8192" help:"Size in pages of the events buffer."`
344342
MapScaleFactor int `default:"${default_map_scale_factor}" help:"Scaling factor for eBPF map sizes. Every increase by 1 doubles the map size. Increase if you see eBPF map size errors. Default is ${default_map_scale_factor} corresponding to 4GB of executable address space, max is ${max_map_scale_factor}."`
345343
VerifierLogLevel uint32 `default:"0" help:"Log level of the eBPF verifier output (0,1,2). Default is 0."`
346-
VerifierLogSize int `default:"${default_bpf_log_size}" help:"Maximum size of the eBPF verifier log."`
344+
VerifierLogSize int `default:"0" help:"[deprecated] Unused."`
347345
}

flags/grpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/logging"
1313
"github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/retry"
1414
"github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/timeout"
15-
"github.com/open-telemetry/opentelemetry-ebpf-profiler/libpf"
15+
"go.opentelemetry.io/ebpf-profiler/libpf"
1616
"github.com/prometheus/client_golang/prometheus"
1717
log "github.com/sirupsen/logrus"
1818
tracing "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"

go.mod

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ require (
1212
github.com/alecthomas/kong v0.9.0
1313
github.com/apache/arrow/go/v16 v16.1.0
1414
github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2
15-
github.com/cilium/ebpf v0.15.0
1615
github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be
1716
github.com/containerd/containerd v1.7.20
1817
github.com/docker/docker v26.1.5+incompatible
@@ -22,7 +21,6 @@ require (
2221
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1
2322
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0
2423
github.com/klauspost/compress v1.17.9
25-
github.com/open-telemetry/opentelemetry-ebpf-profiler v0.0.0-20240730064712-a0b8ba402a37
2624
github.com/prometheus/client_golang v1.19.1
2725
github.com/prometheus/common v0.54.0
2826
github.com/prometheus/prometheus v0.53.1
@@ -35,17 +33,18 @@ require (
3533
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1
3634
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.53.0
3735
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0
38-
go.opentelemetry.io/otel v1.28.0
36+
go.opentelemetry.io/ebpf-profiler v0.0.0-20241025131851-7fa5b1e60d38
37+
go.opentelemetry.io/otel v1.30.0
3938
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.27.0
4039
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0
4140
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0
4241
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.28.0
4342
go.opentelemetry.io/otel/sdk v1.28.0
44-
go.opentelemetry.io/otel/trace v1.28.0
45-
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
46-
golang.org/x/sync v0.7.0
47-
golang.org/x/sys v0.21.0
48-
google.golang.org/grpc v1.64.1
43+
go.opentelemetry.io/otel/trace v1.30.0
44+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
45+
golang.org/x/sync v0.8.0
46+
golang.org/x/sys v0.26.0
47+
google.golang.org/grpc v1.66.2
4948
google.golang.org/protobuf v1.34.2
5049
gopkg.in/yaml.v3 v3.0.1
5150
k8s.io/api v0.29.3
@@ -63,6 +62,7 @@ require (
6362
github.com/beorn7/perks v1.0.1 // indirect
6463
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
6564
github.com/cespare/xxhash/v2 v2.3.0 // indirect
65+
github.com/cilium/ebpf v0.16.0 // indirect
6666
github.com/containerd/cgroups v1.1.0 // indirect
6767
github.com/containerd/cgroups/v3 v3.0.3 // indirect
6868
github.com/containerd/containerd/api v1.7.19 // indirect
@@ -79,7 +79,7 @@ require (
7979
github.com/docker/go-connections v0.4.0 // indirect
8080
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
8181
github.com/docker/go-units v0.5.0 // indirect
82-
github.com/elastic/go-perf v0.0.0-20191212140718-9c656876f595 // indirect
82+
github.com/elastic/go-perf v0.0.0-20241016160959-1342461adb4a // indirect
8383
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
8484
github.com/felixge/httpsnoop v1.0.4 // indirect
8585
github.com/go-logr/logr v1.4.2 // indirect
@@ -125,20 +125,20 @@ require (
125125
github.com/prometheus/client_model v0.6.1 // indirect
126126
github.com/prometheus/procfs v0.15.1 // indirect
127127
go.opencensus.io v0.24.0 // indirect
128-
go.opentelemetry.io/otel/metric v1.28.0 // indirect
128+
go.opentelemetry.io/otel/metric v1.30.0 // indirect
129129
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
130-
golang.org/x/arch v0.8.0 // indirect
131-
golang.org/x/mod v0.18.0 // indirect
132-
golang.org/x/net v0.26.0 // indirect
130+
golang.org/x/arch v0.10.0 // indirect
131+
golang.org/x/mod v0.21.0 // indirect
132+
golang.org/x/net v0.29.0 // indirect
133133
golang.org/x/oauth2 v0.21.0 // indirect
134-
golang.org/x/term v0.21.0 // indirect
135-
golang.org/x/text v0.16.0 // indirect
134+
golang.org/x/term v0.24.0 // indirect
135+
golang.org/x/text v0.18.0 // indirect
136136
golang.org/x/time v0.5.0 // indirect
137-
golang.org/x/tools v0.22.0 // indirect
137+
golang.org/x/tools v0.25.0 // indirect
138138
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
139139
google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 // indirect
140-
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
141-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect
140+
google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 // indirect
141+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 // indirect
142142
gopkg.in/inf.v0 v0.9.1 // indirect
143143
gopkg.in/yaml.v2 v2.4.0 // indirect
144144
k8s.io/klog/v2 v2.120.1 // indirect
@@ -149,4 +149,4 @@ require (
149149
sigs.k8s.io/yaml v1.3.0 // indirect
150150
)
151151

152-
replace github.com/open-telemetry/opentelemetry-ebpf-profiler => github.com/parca-dev/opentelemetry-ebpf-profiler v0.0.0-20241009170523-4d0512c029e0
152+
replace go.opentelemetry.io/ebpf-profiler => github.com/parca-dev/opentelemetry-ebpf-profiler v0.0.0-20241029214924-a8bd47565719

0 commit comments

Comments
 (0)