Class ThresholdLogReference
- java.lang.Object
-
- com.couchbase.client.core.tracing.ThresholdLogReference
-
public class ThresholdLogReference extends Object
Represents a reference from one span to another one.- Since:
- 1.6.0
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThresholdLogReference
childOf(ThresholdLogSpanContext spanContext)
Creates a reference which represents the child of the given context.static ThresholdLogReference
followsFrom(ThresholdLogSpanContext spanContext)
Creates a reference which represents the follower of the given context.ThresholdLogSpanContext
spanContext()
Returns the current span context.String
type()
Returns the type of reference.
-
-
-
Method Detail
-
childOf
public static ThresholdLogReference childOf(ThresholdLogSpanContext spanContext)
Creates a reference which represents the child of the given context.- Parameters:
spanContext
- the context.- Returns:
- a reference representing this relationship.
-
followsFrom
public static ThresholdLogReference followsFrom(ThresholdLogSpanContext spanContext)
Creates a reference which represents the follower of the given context.- Parameters:
spanContext
- the context.- Returns:
- a reference representing this relationship.
-
spanContext
public ThresholdLogSpanContext spanContext()
Returns the current span context.
-
type
public String type()
Returns the type of reference.
-
-