Structsยง
- Global
Collector ๐GlobalCollector
collects traced hummock operations. It starts a collector thread and writer thread. 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 ๐ - WRITER_
BUFFER_ ๐SIZE
Staticsยง
- GLOBAL_
COLLECTOR ๐ - GLOBAL_
RECORD_ ๐ID - SHOULD_
USE_ ๐TRACE - TRACE_
RT ๐
Functionsยง
- Initialize the
GLOBAL_COLLECTOR
with configured log file - set_
should_ ๐use_ trace Sets the value of theSHOULD_USE_TRACE
flag based on theUSE_TRACE
environment variable - Returns whether trace should be used based on the environment variable