Documentation ¶
Index ¶
Constants ¶
const OBFUSCATED = "<obfuscated>"
OBFUSCATED is the value to use for obfuscated tags
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpanTagObfuscation ¶ added in v1.0.24
type SpanTagObfuscation struct {
// contains filtered or unexported fields
}
SpanTagObfuscation does a wildcard search for service and operation name, and replaces the given tags from matching spans with the OBFUSCATED const This modifies the objects parsed, so in a concurrent context, you will want to copy the objects sent here first
func NewObf ¶ added in v1.0.24
func NewObf(ruleConfigs []*TagMatchRuleConfig, next obfsink) (*SpanTagObfuscation, error)
NewObf returns you a new SpanTagObfuscation object
func (*SpanTagObfuscation) AddDatapoints ¶ added in v1.0.24
func (o *SpanTagObfuscation) AddDatapoints(ctx context.Context, points []*datapoint.Datapoint) error
AddDatapoints is a passthrough
type SpanTagRemoval ¶
type SpanTagRemoval struct {
// contains filtered or unexported fields
}
SpanTagRemoval does a wildcard search for service and operation name, and removes the given tags from matching spans This modifies the objects parsed, so in a concurrent context, you will want to copy the objects sent here first
func NewRm ¶ added in v1.0.24
func NewRm(ruleConfigs []*TagMatchRuleConfig, next rmsink) (*SpanTagRemoval, error)
NewRm returns you a new SpanTagRemoval object
func (*SpanTagRemoval) AddDatapoints ¶
AddDatapoints is a passthrough
type TagMatchRuleConfig ¶ added in v1.0.24
type TagMatchRuleConfig struct { Service *string `json:",omitempty"` Operation *string `json:",omitempty"` Tags []string `json:",omitempty"` }
TagMatchRuleConfig describes a wildcard search for a service and operation, along with which specific tags to match Service and Operation can both include "*" for wildcard search, but Tags will only perform an exact text match If Service or Operation are omitted, they will use a default value of "*", to match any service/operation Tags must be present, and cannot be empty