[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eCloudTraceContext\u003c/code\u003e is a Java class that inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors for creating \u003ccode\u003eCloudTraceContext\u003c/code\u003e objects, both taking a byte array and multiple long integers as parameters.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods to retrieve the parent span ID, span ID, trace ID, and trace mask, which are all essential for managing traces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecreateChildContext()\u003c/code\u003e method is used to generate a new child \u003ccode\u003eCloudTraceContext\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eisTraceEnabled()\u003c/code\u003e method checks whether tracing is enabled, returning a boolean value.\u003c/p\u003e\n"]]],[],null,["# Class CloudTraceContext (2.0.0)\n\n public class CloudTraceContext\n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e CloudTraceContext \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### CloudTraceContext(byte\\[\\] arg0, long arg1, long arg2)\n\n public CloudTraceContext(byte[] arg0, long arg1, long arg2)\n\n### CloudTraceContext(byte\\[\\] arg0, long arg1, long arg2, long arg3)\n\n public CloudTraceContext(byte[] arg0, long arg1, long arg2, long arg3)\n\nMethods\n-------\n\n### createChildContext()\n\n public CloudTraceContext createChildContext()\n\n### getParentSpanId()\n\n public long getParentSpanId()\n\n### getSpanId()\n\n public long getSpanId()\n\n### getTraceId()\n\n public byte[] getTraceId()\n\n### getTraceMask()\n\n public long getTraceMask()\n\n### isTraceEnabled()\n\n public boolean isTraceEnabled()"]]