blob: cdeb99b0f6d0d2dc17a6cfd7aa53682d47cbb452 [file] [log] [blame]
Abhay Kumar40252eb2025-10-13 13:25:53 +00001// Copyright 2024 The etcd Authors
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//go:build !with_tla
16
17package raft
18
19import (
20 "go.etcd.io/raft/v3/raftpb"
21 "go.etcd.io/raft/v3/tracker"
22)
23
24const StateTraceDeployed = false
25
26type TraceLogger interface{}
27
28type TracingEvent struct{}
29
30func traceInitState(*raft) {}
31
32func traceReady(*raft) {}
33
34func traceCommit(*raft) {}
35
36func traceReplicate(*raft, ...raftpb.Entry) {}
37
38func traceBecomeFollower(*raft) {}
39
40func traceBecomeCandidate(*raft) {}
41
42func traceBecomeLeader(*raft) {}
43
44func traceChangeConfEvent(raftpb.ConfChangeI, *raft) {}
45
46func traceConfChangeEvent(tracker.Config, *raft) {}
47
48func traceSendMessage(*raft, *raftpb.Message) {}
49
50func traceReceiveMessage(*raft, *raftpb.Message) {}