Top Description Methods
io.micrometer.tracing

public Interface SpanNamer

Known Direct Implementers
io.micrometer.tracing.internal.DefaultSpanNamer

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.
Author
Marcin Grzejszczak
Since
1.0.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

span name
name
(Object
- object for which span name should be picked
object
,
String
- the default valued to be returned if span name can't be calculated
defaultValue
)

Retrieves the span name for the given object.

Method Detail

nameback to summary
public String name(Object object, String defaultValue)

Retrieves the span name for the given object.

Parameters
object:Object

- object for which span name should be picked

defaultValue:String

- the default valued to be returned if span name can't be calculated

Returns:String

span name