Package org.springframework.cloud.sleuth
Interface SpanNamer
public interface SpanNamer
Describes how for a given object a span should be named. In the vast majority of cases
a name should be provided explicitly. In case of instrumentation where the name has to
be resolved at runtime this interface will provide the name of the span.
- Since:
- 1.0.0
- Author:
- Marcin Grzejszczak
-
Method Summary
-
Method Details
-
name
Retrieves the span name for the given object.- Parameters:
object- - object for which span name should be pickeddefaultValue- - the default valued to be returned if span name can't be calculated- Returns:
- span name
-