Documentation ¶
Index ¶
- func IsWorkloadParticipatingInRule(workload workload.PodWorkload, rule *odigosv1alpha1.InstrumentationRule) bool
- type OtelSdkInstrumentationRulePredicate
- func (o OtelSdkInstrumentationRulePredicate) Create(e event.CreateEvent) bool
- func (i OtelSdkInstrumentationRulePredicate) Delete(e event.DeleteEvent) bool
- func (i OtelSdkInstrumentationRulePredicate) Generic(e event.GenericEvent) bool
- func (i OtelSdkInstrumentationRulePredicate) Update(e event.UpdateEvent) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWorkloadParticipatingInRule ¶
func IsWorkloadParticipatingInRule(workload workload.PodWorkload, rule *odigosv1alpha1.InstrumentationRule) bool
naive implementation, can be optimized. assumption is that the list of workloads is small
Types ¶
type OtelSdkInstrumentationRulePredicate ¶
type OtelSdkInstrumentationRulePredicate struct{}
func (OtelSdkInstrumentationRulePredicate) Create ¶
func (o OtelSdkInstrumentationRulePredicate) Create(e event.CreateEvent) bool
func (OtelSdkInstrumentationRulePredicate) Delete ¶
func (i OtelSdkInstrumentationRulePredicate) Delete(e event.DeleteEvent) bool
func (OtelSdkInstrumentationRulePredicate) Generic ¶
func (i OtelSdkInstrumentationRulePredicate) Generic(e event.GenericEvent) bool
func (OtelSdkInstrumentationRulePredicate) Update ¶
func (i OtelSdkInstrumentationRulePredicate) Update(e event.UpdateEvent) bool
Click to show internal directories.
Click to hide internal directories.