Package com.wavefront.agent.preprocessor
Class SpanExtractAnnotationTransformer
- java.lang.Object
-
- com.wavefront.agent.preprocessor.SpanExtractAnnotationTransformer
-
- All Implemented Interfaces:
com.google.common.base.Function<wavefront.report.Span,wavefront.report.Span>
,Function<wavefront.report.Span,wavefront.report.Span>
- Direct Known Subclasses:
SpanExtractAnnotationIfNotExistsTransformer
public class SpanExtractAnnotationTransformer extends Object implements com.google.common.base.Function<wavefront.report.Span,wavefront.report.Span>
Create a point tag by extracting a portion of a metric name, source name or another point tag- Author:
- [email protected]
-
-
Field Summary
Fields Modifier and Type Field Description protected Pattern
compiledMatchPattern
protected Pattern
compiledSearchPattern
protected boolean
firstMatchOnly
protected String
input
protected String
key
protected String
patternReplace
protected String
patternReplaceInput
protected PreprocessorRuleMetrics
ruleMetrics
protected Predicate<wavefront.report.Span>
v2Predicate
-
Constructor Summary
Constructors Constructor Description SpanExtractAnnotationTransformer(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)
protected boolean
extractAnnotation(wavefront.report.Span span, String extractFrom, List<wavefront.report.Annotation> annotationBuffer)
protected void
internalApply(wavefront.report.Span span)
-
-
-
Field Detail
-
key
protected final String key
-
input
protected final String input
-
patternReplace
protected final String patternReplace
-
compiledSearchPattern
protected final Pattern compiledSearchPattern
-
firstMatchOnly
protected final boolean firstMatchOnly
-
ruleMetrics
protected final PreprocessorRuleMetrics ruleMetrics
-
v2Predicate
protected final Predicate<wavefront.report.Span> v2Predicate
-
-
Constructor Detail
-
SpanExtractAnnotationTransformer
public SpanExtractAnnotationTransformer(String key, String input, String patternSearch, String patternReplace, @Nullable String replaceInput, @Nullable String patternMatch, boolean firstMatchOnly, @Nullable Predicate<wavefront.report.Span> v2Predicate, PreprocessorRuleMetrics ruleMetrics)
-
-