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 PatterncompiledMatchPatternprotected PatterncompiledSearchPatternprotected booleanfirstMatchOnlyprotected Stringinputprotected Stringkeyprotected StringpatternReplaceprotected StringpatternReplaceInputprotected PreprocessorRuleMetricsruleMetrics
-
Constructor Summary
Constructors Constructor Description SpanExtractAnnotationTransformer(String key, String input, String patternSearch, String patternReplace, String replaceInput, String patternMatch, boolean firstMatchOnly, PreprocessorRuleMetrics ruleMetrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description wavefront.report.Spanapply(wavefront.report.Span span)protected booleanextractAnnotation(wavefront.report.Span span, String extractFrom)protected voidinternalApply(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
-
-