Package com.wavefront.agent.preprocessor
Class SpanAddAnnotationIfNotExistsTransformer
- java.lang.Object
-
- com.wavefront.agent.preprocessor.SpanAddAnnotationTransformer
-
- com.wavefront.agent.preprocessor.SpanAddAnnotationIfNotExistsTransformer
-
- All Implemented Interfaces:
com.google.common.base.Function<wavefront.report.Span,wavefront.report.Span>
,Function<wavefront.report.Span,wavefront.report.Span>
public class SpanAddAnnotationIfNotExistsTransformer extends SpanAddAnnotationTransformer
Creates a new annotation with a specified key/value pair. If such point tag already exists, the value won't be overwritten.- Author:
- [email protected]
-
-
Field Summary
-
Fields inherited from class com.wavefront.agent.preprocessor.SpanAddAnnotationTransformer
key, ruleMetrics, v2Predicate, value
-
-
Constructor Summary
Constructors Constructor Description SpanAddAnnotationIfNotExistsTransformer(String key, String value, Predicate<wavefront.report.Span> v2Predicate, PreprocessorRuleMetrics ruleMetrics)
-
-
-
Constructor Detail
-
SpanAddAnnotationIfNotExistsTransformer
public SpanAddAnnotationIfNotExistsTransformer(String key, String value, @Nullable Predicate<wavefront.report.Span> v2Predicate, PreprocessorRuleMetrics ruleMetrics)
-
-
Method Detail
-
apply
@Nullable public wavefront.report.Span apply(@Nullable wavefront.report.Span span)
- Specified by:
apply
in interfacecom.google.common.base.Function<wavefront.report.Span,wavefront.report.Span>
- Specified by:
apply
in interfaceFunction<wavefront.report.Span,wavefront.report.Span>
- Overrides:
apply
in classSpanAddAnnotationTransformer
-
-