mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-02 22:25:48 +00:00
Drop the AGPL license in favor of a source-available license. See the blog post [1] for details. [1] https://www.scylladb.com/2024/12/18/why-were-moving-to-a-source-available-license/
36 lines
796 B
C++
36 lines
796 B
C++
/*
|
|
* Copyright 2016-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#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)
|
|
};
|
|
}
|
|
|