File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed
pkg/network/tracer/connection Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,6 @@ const (
4646 connTracerModuleName = "network_tracer__ebpf"
4747)
4848
49- var (
50- // ErrEbpfTracerNotSupported is the error returned when the eBPF tracer is not supported
51- ErrEbpfTracerNotSupported = fmt .Errorf ("ebpf not supported on this platform" )
52- )
53-
5449//nolint:revive // TODO(NET) Fix revive linter
5550var EbpfTracerTelemetry = struct {
5651 connections telemetry.Gauge
Original file line number Diff line number Diff line change 88package connection
99
1010import (
11- "errors"
1211 "fmt"
1312 "io"
1413 "sync"
@@ -40,9 +39,6 @@ const (
4039)
4140
4241var (
43- // ErrEbpflessNotSupported is the error returned when the ebpfless tracer is not supported
44- ErrEbpflessNotSupported = errors .New ("ebpf-less tracer not supported" )
45-
4642 ebpfLessTracerTelemetry = struct {
4743 skippedPackets telemetry.Counter
4844 }{
@@ -72,11 +68,7 @@ type ebpfLessTracer struct {
7268 ns netns.NsHandle
7369}
7470
75- // NewEbpfLessTracer creates a new ebpfLessTracer instance
76- func NewEbpfLessTracer (cfg * config.Config ) (Tracer , error ) {
77- return newEbpfLessTracer (cfg )
78- }
79-
71+ // newEbpfLessTracer creates a new ebpfLessTracer instance
8072func newEbpfLessTracer (cfg * config.Config ) (* ebpfLessTracer , error ) {
8173 packetSrc , err := filter .NewAFPacketSource (
8274 8 << 20 , // 8 MB total space
You can’t perform that action at this time.
0 commit comments