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

public final Class SpanNameUtil

extends Object
Class Inheritance
Imports
io.micrometer.common.util.StringUtils

Utility class that provides the name in hyphen based notation.
Author
Adrian Cole
Since
1.0.0

Field Summary

Modifier and TypeField and Description
pack-priv static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

shortened name
shorten
(String
name to shorten
name
)

Shortens the name of a span.

public static String

Returns:

changed name
toLowerHyphen
(String
name to change
name
)

Converts the name to a lower hyphen version.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAX_NAME_LENGTHback to summary
pack-priv static final int MAX_NAME_LENGTH

Constructor Detail

SpanNameUtilback to summary
private SpanNameUtil()

Method Detail

shortenback to summary
public static String shorten(String name)

Shortens the name of a span.

Parameters
name:String

name to shorten

Returns:String

shortened name

toLowerHyphenback to summary
public static String toLowerHyphen(String name)

Converts the name to a lower hyphen version.

Parameters
name:String

name to change

Returns:String

changed name