Class DefaultSpanNamer

java.lang.Object
org.springframework.cloud.sleuth.internal.DefaultSpanNamer
All Implemented Interfaces:
SpanNamer

public class DefaultSpanNamer extends Object implements SpanNamer
Default implementation of SpanNamer that tries to get the span name as follows:

* from the @SpanName annotation on the class if one is present.

* from the @SpanName annotation on the method if passed object is of a Method. type

* from the toString() of the delegate if it's not the default Object.toString().

* the default provided value.

Since:
1.0.0
Author:
Marcin Grzejszczak
See Also:
  • Constructor Details

    • DefaultSpanNamer

      public DefaultSpanNamer()
  • Method Details