Class DefaultNewSpanParser

java.lang.Object
io.micrometer.tracing.annotation.DefaultNewSpanParser
All Implemented Interfaces:
NewSpanParser

public class DefaultNewSpanParser extends Object implements NewSpanParser
Default implementation of the NewSpanParser that parses only the span name. Code ported from Spring Cloud Sleuth.
Since:
1.1.0
  • Constructor Details

    • DefaultNewSpanParser

      public DefaultNewSpanParser()
  • Method Details

    • parse

      public void parse(org.aopalliance.intercept.MethodInvocation pjp, NewSpan newSpan, Span span)
      Description copied from interface: NewSpanParser
      Override to control the name and tags on an annotation-based span.
      Specified by:
      parse in interface NewSpanParser
      Parameters:
      pjp - method invocation annotated with new span
      newSpan - meta data of the new span
      span - span to customize