WithEventFilterDescriptors assigns filters to be passed to the provider's enable callback function.
(descriptors ...etw.EventFilterDescriptor)
| 191 | // WithEventFilterDescriptors assigns filters to be passed |
| 192 | // to the provider's enable callback function. |
| 193 | func WithEventFilterDescriptors(descriptors ...etw.EventFilterDescriptor) Option { |
| 194 | return func(o *opts) { |
| 195 | o.eventFilterDescriptors = descriptors |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | // NewKernelTrace creates a new NT Kernel Logger trace. |
| 200 | func NewKernelTrace(config *config.Config) *Trace { |