-
public interface DatadogSpanContextDatadogSpanContext represents span state that must propagate to descendant spans and across process boundaries.
-
-
Method Summary
Modifier and Type Method Description abstract BooleansetSamplingPriority(Integer samplingPriority)Sets the sampling priority for the span. abstract UnitsetMetric(CharSequence key, Double value)Sets a numerical metric associated with the span. abstract DatadogTraceIdgetTraceId()Represents the unique identifier for a Datadog trace. abstract LonggetSpanId()Represents the unique identifier for a Datadog span. abstract IntegergetSamplingPriority()Represents the sampling priority value for a span. abstract Map<String, Object>getTags()Represents a collection of tags associated with the span. -
-
Method Detail
-
setSamplingPriority
abstract Boolean setSamplingPriority(Integer samplingPriority)
Sets the sampling priority for the span.
- Parameters:
samplingPriority- The sampling priority value to be set for the span.
-
setMetric
abstract Unit setMetric(CharSequence key, Double value)
Sets a numerical metric associated with the span.
- Parameters:
key- The name of the metric to be set.value- The numerical value of the metric to be associated with the specified key.
-
getTraceId
abstract DatadogTraceId getTraceId()
Represents the unique identifier for a Datadog trace.
-
getSamplingPriority
abstract Integer getSamplingPriority()
Represents the sampling priority value for a span.
-
-
-
-