Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ds-collector/ds-collector
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ collect_via_rust() {
export no_nodesyncrate
export solr_data_dir
export skip_dse_solr
if ! [ "$enableTracingCollection" = "true" ] ; then export skip_tracing_collection="true" ; fi
if echo $- | grep -q x ; then export COLLECT_INFO_DEBUG=true ; fi
${baseDir}/collect-info "$server_pid" "$artifactDir"
statusState=$?
Expand Down
21 changes: 21 additions & 0 deletions ds-collector/rust-commands/collect-info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,4 +1215,25 @@ const COMMANDS: &[Cmd<'static>] = &[
use_sudo: false,
use_timeout: true,
},
// collect system traces, if permitted
Cmd {
command: "cqlsh",
args: "{cqlsh_host} {cqlsh_port} {cqlsh_opts} -e 'COPY system_traces.sessions TO {artifact_dir}/system_traces_sessions.csv;''",
file: "",
optional: true,
skip_flags: "skip_tracing_collection",
use_stdout: true,
use_sudo: false,
use_timeout: false,
},
Cmd {
command: "cqlsh",
args: "{cqlsh_host} {cqlsh_port} {cqlsh_opts} -e 'COPY system_traces.events TO {artifact_dir}/system_traces_events.csv;''",
file: "",
optional: true,
skip_flags: "skip_tracing_collection",
use_stdout: true,
use_sudo: false,
use_timeout: false,
},
];