Package com.wavefront.agent.preprocessor
Class SpanAllowAnnotationTransformer
- java.lang.Object
-
- com.wavefront.agent.preprocessor.SpanAllowAnnotationTransformer
-
- All Implemented Interfaces:
com.google.common.base.Function<wavefront.report.Span,wavefront.report.Span>
,Function<wavefront.report.Span,wavefront.report.Span>
public class SpanAllowAnnotationTransformer extends Object implements com.google.common.base.Function<wavefront.report.Span,wavefront.report.Span>
Only allow span annotations that match the allowed list.- Author:
- [email protected]
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description wavefront.report.Span
apply(wavefront.report.Span span)
static SpanAllowAnnotationTransformer
create(Map<String,Object> ruleMap, Predicate<wavefront.report.Span> v2Predicate, PreprocessorRuleMetrics ruleMetrics)
Create an instance based on loaded yaml fragment.
-
-
-
Method Detail
-
create
public static SpanAllowAnnotationTransformer create(Map<String,Object> ruleMap, @Nullable Predicate<wavefront.report.Span> v2Predicate, PreprocessorRuleMetrics ruleMetrics)
Create an instance based on loaded yaml fragment.- Parameters:
ruleMap
- yaml mapv2Predicate
- the v2 predicateruleMetrics
- metrics container- Returns:
- SpanAllowAnnotationTransformer instance
-
-