Package com.wavefront.agent.preprocessor
Class SpanAddAnnotationTransformer
- java.lang.Object
-
- com.wavefront.agent.preprocessor.SpanAddAnnotationTransformer
-
- All Implemented Interfaces:
com.google.common.base.Function<wavefront.report.Span,wavefront.report.Span>
,Function<wavefront.report.Span,wavefront.report.Span>
- Direct Known Subclasses:
SpanAddAnnotationIfNotExistsTransformer
public class SpanAddAnnotationTransformer extends Object implements com.google.common.base.Function<wavefront.report.Span,wavefront.report.Span>
Creates a new annotation with a specified key/value pair.- Author:
- [email protected]
-
-
Field Summary
Fields Modifier and Type Field Description protected String
key
protected PreprocessorRuleMetrics
ruleMetrics
protected Predicate<wavefront.report.Span>
v2Predicate
protected String
value
-
Constructor Summary
Constructors Constructor Description SpanAddAnnotationTransformer(String key, String value, Predicate<wavefront.report.Span> v2Predicate, PreprocessorRuleMetrics ruleMetrics)
-
-
-
Field Detail
-
key
protected final String key
-
value
protected final String value
-
ruleMetrics
protected final PreprocessorRuleMetrics ruleMetrics
-
v2Predicate
protected final Predicate<wavefront.report.Span> v2Predicate
-
-
Constructor Detail
-
SpanAddAnnotationTransformer
public SpanAddAnnotationTransformer(String key, String value, @Nullable Predicate<wavefront.report.Span> v2Predicate, PreprocessorRuleMetrics ruleMetrics)
-
-