Structsยง
- Global
Collector ๐ GlobalCollectorcollects traced hummock operations. It starts a collector thread and writer thread.- MayTrace
Span - Trace
Span TraceSpantraces hummock operations. It marks the beginning of an operation and the end when the span is dropped. So, please make sure the span live long enough. Underscore binding likelet _ = spanwill drop the span immediately.
Enumsยง
Constantsยง
- DEFAULT_
PATH ๐ - LOG_
PATH ๐ - USE_
TRACE - WRITER_
BUFFER_ ๐SIZE
Staticsยง
- CONCURRENT_
ID - GLOBAL_
COLLECTOR ๐ - GLOBAL_
RECORD_ ๐ID - LOCAL_
ID - SHOULD_
USE_ ๐TRACE - TRACE_
RT ๐
Functionsยง
- init_
collector - Initialize the
GLOBAL_COLLECTORwith configured log file - set_
should_ ๐use_ trace - Sets the value of the
SHOULD_USE_TRACEflag based on theUSE_TRACEenvironment variable - should_
use_ trace - Returns whether trace should be used based on the environment variable