Files
scylladb/idl/tracing.idl.hh
Avi Kivity 0ae22a09d4 LICENSE: Update to version 1.1
Updated terms of non-commercial use (must be a never-customer).
2026-04-12 19:46:33 +03:00

36 lines
796 B
C++

/*
* Copyright 2016-present ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
*/
#include "tracing/tracing.hh"
#include "idl/uuid.idl.hh"
namespace tracing {
enum class trace_type : uint8_t {
NONE,
QUERY,
REPAIR,
};
class span_id {
uint64_t get_id();
};
class trace_info {
utils::UUID session_id;
tracing::trace_type type;
bool write_on_close;
tracing::trace_state_props_set state_props [[version 1.4]];
uint32_t slow_query_threshold_us [[version 1.4]];
uint32_t slow_query_ttl_sec [[version 1.4]];
tracing::span_id parent_id [[version 1.8]]; /// RPC sender's tracing session span ID
uint64_t start_ts_us [[version 5.0]]; /// Microtimestamp of parent session's begin() call (or 0 if not applicable)
};
}