-
Notifications
You must be signed in to change notification settings - Fork 451
/
tracepoint.go
152 lines (108 loc) · 6.85 KB
/
tracepoint.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// Copyright (c) 2019 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package tracepoint
// The tracepoint package is used to store operation names for tracing throughout dbnode.
// The naming convention is as follows:
// `packageName.objectName.method`
// If there isn't an object, use `packageName.method`.
const (
// FetchTagged is the operation name for the tchannelthrift FetchTagged path.
FetchTagged = "tchannelthrift/node.service.FetchTagged"
// Query is the operation name for the tchannelthrift Query path.
Query = "tchannelthrift/node.service.Query"
// FetchReadSingleResult is the operation name for the tchannelthrift FetchReadSingleResult path.
FetchReadSingleResult = "tchannelthrift/node.service.FetchReadSingleResult"
// FetchReadSegment is the operation name for the tchannelthrift FetchReadSegment path.
FetchReadSegment = "tchannelthrift/node.service.FetchReadSegment"
// AggregateTiles is the operation name for the tchannelthrift AggregateTiles path.
AggregateTiles = "tchannelthrift/node.service.AggregateTiles"
// DBQueryIDs is the operation name for the db QueryIDs path.
DBQueryIDs = "storage.db.QueryIDs"
// DBAggregateQuery is the operation name for the db AggregateQuery path.
DBAggregateQuery = "storage.db.AggregateQuery"
// DBReadEncoded is the operation name for the db ReadEncoded path.
DBReadEncoded = "storage.db.ReadEncoded"
// DBWideQuery is the operation name for the db WideQuery path.
DBWideQuery = "storage.db.WideQuery"
// DBReadMismatches is the operation name for the db ReadMismatches path.
DBReadMismatches = "storage.db.ReadMismatches"
// DBFetchBlocks is the operation name for the db FetchBlocks path.
DBFetchBlocks = "storage.db.FetchBlocks"
// DBFetchBlocksMetadataV2 is the operation name for the db FetchBlocksMetadataV2 path.
DBFetchBlocksMetadataV2 = "storage.db.FetchBlocksMetadataV2"
// DBWriteBatch is the operation name for the db WriteBatch path.
DBWriteBatch = "storage.db.WriteBatch"
// DBFetchMismatch is the operation name for the tchannelthrift DBFetchMismatch path.
DBFetchMismatch = "storage.db.FetchMismatch"
// DBAggregateTiles is the operation name for the db AggregateTiles path.
DBAggregateTiles = "storage.db.AggregateTiles"
// NSQueryIDs is the operation name for the dbNamespace QueryIDs path.
NSQueryIDs = "storage.dbNamespace.QueryIDs"
// NSWideQueryIDs is the operation name for the dbNamespace WideQueryIDs path.
NSWideQueryIDs = "storage.nsIndex.WideQueryIDs"
// NSPrepareBootstrap is the operation name for the dbNamespace PrepareBootstrap path.
NSPrepareBootstrap = "storage.dbNamespace.PrepareBootstrap"
// NSBootstrap is the operation name for the dbNamespace Bootstrap path.
NSBootstrap = "storage.dbNamespace.Bootstrap"
// ShardPrepareBootstrap is the operation name for the dbShard PrepareBootstrap path.
ShardPrepareBootstrap = "storage.dbShard.PrepareBootstrap"
// ShardBootstrap is the operation name for the dbShard Bootstrap path.
ShardBootstrap = "storage.dbShard.Bootstrap"
// NSIdxQuery is the operation name for the nsIndex Query path.
NSIdxQuery = "storage.nsIndex.Query"
// NSIdxWideQuery is the operation name for the nsIndex WideQuery path.
NSIdxWideQuery = "storage.nsIndex.WideQuery"
// NSIdxAggregateQuery is the operation name for the nsIndex AggregateQuery path.
NSIdxAggregateQuery = "storage.nsIndex.AggregateQuery"
// NSIdxQueryHelper is the operation name for the nsIndex query path.
NSIdxQueryHelper = "storage.nsIndex.query"
// NSIdxBlockQuery is the operation name for the nsIndex block query path.
NSIdxBlockQuery = "storage.nsIndex.blockQuery"
// NSIdxBlockAggregateQuery is the operation name for the nsIndex block aggregate query path.
NSIdxBlockAggregateQuery = "storage.nsIndex.blockAggregateQuery"
// NSIdxBlockQueryAddDocuments is the operation name for adding documents by batch in the block query path.
NSIdxBlockQueryAddDocuments = "storage.nsIndex.blockQueryAddDocuments"
// NSIdxBlockAggregateQueryAddDocuments is the operation name for adding documents by batch in the agg query path.
NSIdxBlockAggregateQueryAddDocuments = "storage.nsIndex.blockAggregateQueryAddDocuments"
// SearchExecutorIndexSearch is the operation name for searching on individual segment,
// in practice executed in the block query path.
SearchExecutorIndexSearch = "search.executor.IndexSearch"
// FieldTermsIteratorIndexSearch is the operation name for searching fields,
// in practice executed in the aggregate query path.
FieldTermsIteratorIndexSearch = "storage.index.fieldTermsIterator.IndexSearch"
// BlockQuery is the operation name for the index block query path.
BlockQuery = "storage/index.block.Query"
// BlockAggregate is the operation name for the index block aggregate path.
BlockAggregate = "storage/index.block.Aggregate"
// BootstrapProcessRun is the operation name for the bootstrap process Run path.
BootstrapProcessRun = "bootstrap.bootstrapProcess.Run"
// BootstrapperUninitializedSourceRead is the operation for the uninitializedTopologySource Read path.
BootstrapperUninitializedSourceRead = "bootstrapper.uninitialized.uninitializedTopologySource.Read"
// BootstrapperCommitLogSourceRead is the operation for the commit log Read path.
BootstrapperCommitLogSourceRead = "bootstrapper.commitlog.commitLogSource.Read"
// BootstrapperPeersSourceRead is the operation for the peers Read path.
BootstrapperPeersSourceRead = "bootstrapper.peers.peersSource.Read"
// BootstrapperFilesystemSourceRead is the operation for the filesystem Read path.
BootstrapperFilesystemSourceRead = "bootstrapper.fs.filesystemSource.Read"
// BootstrapperFilesystemSourceMigrator is the operation for filesystem migrator path.
BootstrapperFilesystemSourceMigrator = "bootstrapper.fs.filesystemSource.Migrator"
// WorkerPoolWait is the operation name for the waiting that occurs for a worker pool.
WorkerPoolWait = "x.sync.WorkerPoolWait"
)