Class TracingUtils
- java.lang.Object
-
- org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.management.helpers.TracingUtils
-
public class TracingUtils extends Object
Contains utility methods related to OpenTelemetry.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringextractId(BasicStatisticDataUnit basicStatisticDataUnit)Extracts the explicit id which is directly used to start and end spans, from the provided basic statistic data unit.static StringgetSystemIdentityHashCode(Object object)Returns the same hash code for the given object as would be returned by the default method hashCode(), whether or not the given object's class overrides hashCode().static booleanisAnonymousSequence(StatisticDataUnit statisticDataUnit)Returns whether the given statistic data unit is from an anonymous sequence.
-
-
-
Method Detail
-
extractId
public static String extractId(BasicStatisticDataUnit basicStatisticDataUnit)
Extracts the explicit id which is directly used to start and end spans, from the provided basic statistic data unit.- Parameters:
basicStatisticDataUnit- Basic statistic data unit which explicitly contains the id.- Returns:
- Extracted id.
-
getSystemIdentityHashCode
public static String getSystemIdentityHashCode(Object object)
Returns the same hash code for the given object as would be returned by the default method hashCode(), whether or not the given object's class overrides hashCode(). The hash code for the null reference is zero.- Parameters:
object- An object.- Returns:
- System identity hash code for the given object.
-
isAnonymousSequence
public static boolean isAnonymousSequence(StatisticDataUnit statisticDataUnit)
Returns whether the given statistic data unit is from an anonymous sequence.- Parameters:
statisticDataUnit- Statistic data unit object.- Returns:
- Whether the given statistic data unit is from an anonymous sequence.
-
-