File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
pkg/containerwatcher/v2/tracers Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ func NewIoUringTracer(
45
45
}
46
46
47
47
// Start initializes and starts the io_uring tracer
48
- func (it * IoUringTracer ) Start (ctx context.Context ) error {
48
+ func (it * IoUringTracer ) Start (_ context.Context ) error {
49
49
if err := it .tracerCollection .AddTracer (iouringTraceName , it .containerSelector ); err != nil {
50
50
return fmt .Errorf ("adding io_uring tracer: %w" , err )
51
51
}
@@ -62,7 +62,8 @@ func (it *IoUringTracer) Start(ctx context.Context) error {
62
62
it .iouringEventCallback ,
63
63
)
64
64
if err != nil {
65
- return fmt .Errorf ("creating io_uring tracer: %w" , err )
65
+ logger .L ().Warning ("Failed to create io_uring tracer" , helpers .Error (err ))
66
+ return nil
66
67
}
67
68
68
69
it .tracer = tracerIouring
@@ -94,8 +95,8 @@ func (it *IoUringTracer) GetEventType() utils.EventType {
94
95
95
96
// IsEnabled checks if this tracer should be enabled based on configuration
96
97
func (it * IoUringTracer ) IsEnabled (cfg interface {}) bool {
97
- if config , ok := cfg .(config.Config ); ok {
98
- return config .EnableRuntimeDetection
98
+ if conf , ok := cfg .(config.Config ); ok {
99
+ return conf .EnableRuntimeDetection
99
100
}
100
101
return false
101
102
}
You can’t perform that action at this time.
0 commit comments