Package com.wavefront.agent.preprocessor
Class SpanExtractAnnotationIfNotExistsTransformer
- java.lang.Object
-
- com.wavefront.agent.preprocessor.SpanExtractAnnotationTransformer
-
- com.wavefront.agent.preprocessor.SpanExtractAnnotationIfNotExistsTransformer
-
- All Implemented Interfaces:
com.google.common.base.Function<wavefront.report.Span,wavefront.report.Span>
,Function<wavefront.report.Span,wavefront.report.Span>
public class SpanExtractAnnotationIfNotExistsTransformer extends SpanExtractAnnotationTransformer
Create a new span annotation by extracting a portion of a span name, source name or another annotation- Author:
- [email protected]
-
-
Field Summary
-
Fields inherited from class com.wavefront.agent.preprocessor.SpanExtractAnnotationTransformer
compiledMatchPattern, compiledSearchPattern, firstMatchOnly, input, key, patternReplace, patternReplaceInput, ruleMetrics, v2Predicate
-
-
Constructor Summary
Constructors Constructor Description SpanExtractAnnotationIfNotExistsTransformer(String key, String input, String patternSearch, String patternReplace, String replaceInput, String patternMatch, boolean firstMatchOnly, Predicate<wavefront.report.Span> v2Predicate, PreprocessorRuleMetrics ruleMetrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description wavefront.report.Span
apply(wavefront.report.Span span)
-
Methods inherited from class com.wavefront.agent.preprocessor.SpanExtractAnnotationTransformer
extractAnnotation, internalApply
-
-
-
-
Constructor Detail
-
SpanExtractAnnotationIfNotExistsTransformer
public SpanExtractAnnotationIfNotExistsTransformer(String key, String input, String patternSearch, String patternReplace, @Nullable String replaceInput, @Nullable String patternMatch, boolean firstMatchOnly, @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 classSpanExtractAnnotationTransformer
-
-