Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Debugtrace #225

Merged
merged 5 commits into from Aug 11, 2021
Merged

Debugtrace #225

merged 5 commits into from Aug 11, 2021

Conversation

MathieuBordere
Copy link
Contributor

First stab at adding tracing to raft when LIBRAFT_TRACE is set on startup. Will probably have to refine the messages a bit and also wire up the libuv tracing, but having these messages would already be helpful when debugging some cases.

Signed-off-by: Mathieu Borderé <mathieu.bordere@canonical.com>
Signed-off-by: Mathieu Borderé <mathieu.bordere@canonical.com>
Signed-off-by: Mathieu Borderé <mathieu.bordere@canonical.com>
Signed-off-by: Mathieu Borderé <mathieu.bordere@canonical.com>
@stgraber stgraber merged commit b8af7c5 into canonical:master Aug 11, 2021
} while (0)

/* Enable the tracer if the env variable is set or disable the tracer */
void raft_tracer_maybe_enable(struct raft_tracer *tracer, bool enabled);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: iiuc this is an internal function/symbol, so it should probably be named something like "TraceMaybeEnable" or similar (convention is CamelCase for internal symbols and snail_case for public ones).

@MathieuBordere MathieuBordere deleted the debugtrace branch December 9, 2022 10:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants