Structsยง
- Global
Collector ๐ GlobalCollector
collects traced hummock operations. It starts a collector thread and writer thread.- MayTrace
Span - Trace
Span TraceSpan
traces 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 _ = span
will 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_COLLECTOR
with configured log file - set_
should_ ๐use_ trace - Sets the value of the
SHOULD_USE_TRACE
flag based on theUSE_TRACE
environment variable - should_
use_ trace - Returns whether trace should be used based on the environment variable