Class 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]
    • Method Detail

      • 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>
        Overrides:
        apply in class SpanAddAnnotationTransformer