Top Description Fields Constructors Methods
io.micrometer.tracing.annotation

public Class DefaultNewSpanParser

extends Object
implements NewSpanParser
Class Inheritance
All Implemented Interfaces
io.micrometer.tracing.annotation.NewSpanParser
Imports
io.micrometer.common.util.StringUtils, io.micrometer.common.util.internal.logging.InternalLogger, .InternalLoggerFactory, io.micrometer.tracing.Span, io.micrometer.tracing.internal.SpanNameUtil, org.aopalliance.intercept.MethodInvocation

Default implementation of the NewSpanParser that parses only the span name. Code ported from Spring Cloud Sleuth.
Author
Christian Schwerdtfeger
Since
1.1.0

Field Summary

Modifier and TypeField and Description
private static final InternalLogger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
parse(MethodInvocation
method invocation annotated with new span
pjp
,
NewSpan
meta data of the new span
newSpan
,
Span
span to customize
span
)

Implements io.micrometer.tracing.annotation.NewSpanParser.parse.

Override to control the name and tags on an annotation-based span.
private String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final InternalLogger log

Constructor Detail

DefaultNewSpanParserback to summary
public DefaultNewSpanParser()

Method Detail

parseback to summary
public void parse(MethodInvocation pjp, NewSpan newSpan, Span span)

Implements io.micrometer.tracing.annotation.NewSpanParser.parse.

Doc from io.micrometer.tracing.annotation.NewSpanParser.parse.

Override to control the name and tags on an annotation-based span.

Parameters
pjp:MethodInvocation

method invocation annotated with new span

newSpan:NewSpan

meta data of the new span

span:Span

span to customize

Annotations
@Override
spanNameback to summary
private String spanName(NewSpan newSpan, MethodInvocation pjp)