Class 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 Detail

      • key

        protected final String key
      • input

        protected final String input
      • patternReplace

        protected final String patternReplace
      • compiledSearchPattern

        protected final Pattern compiledSearchPattern
      • patternReplaceInput

        @Nullable
        protected final String patternReplaceInput
      • firstMatchOnly

        protected final boolean firstMatchOnly
      • v2Predicate

        protected final Predicate<wavefront.report.Span> v2Predicate
    • Method Detail

      • extractAnnotation

        protected boolean extractAnnotation​(@Nonnull
                                            wavefront.report.Span span,
                                            String extractFrom,
                                            List<wavefront.report.Annotation> annotationBuffer)
      • internalApply

        protected void internalApply​(@Nonnull
                                     wavefront.report.Span span)
      • apply

        @Nullable
        public wavefront.report.Span apply​(@Nullable
                                           wavefront.report.Span span)
        Specified by:
        apply in interface com.google.common.base.Function<wavefront.report.Span,​wavefront.report.Span>
        Specified by:
        apply in interface Function<wavefront.report.Span,​wavefront.report.Span>