risingwave_hummock_trace

Module collector

source

Structsยง

  • GlobalCollector ๐Ÿ”’
    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 like let _ = span will drop the span immediately.

Enumsยง

Constantsยง

Staticsยง

Functionsยง

  • Initialize the GLOBAL_COLLECTOR with configured log file
  • Sets the value of the SHOULD_USE_TRACE flag based on the USE_TRACE environment variable
  • Returns whether trace should be used based on the environment variable

Type Aliasesยง