@@ -16,7 +16,7 @@ import (
16
16
"time"
17
17
)
18
18
19
- const AgentVersion = "2.3.5 "
19
+ const AgentVersion = "2.3.6 "
20
20
const SAASDashboardAddress = "https://agent-api.stackimpact.com"
21
21
22
22
var agentPath = filepath .Join ("github.com" , "stackimpact" , "stackimpact-go" )
@@ -41,7 +41,7 @@ type Agent struct {
41
41
cpuReporter * ProfileReporter
42
42
allocationReporter * ProfileReporter
43
43
blockReporter * ProfileReporter
44
- segmentReporter * SegmentReporter
44
+ spanReporter * SpanReporter
45
45
errorReporter * ErrorReporter
46
46
47
47
profilerActive * Flag
@@ -78,7 +78,7 @@ func NewAgent() *Agent {
78
78
cpuReporter : nil ,
79
79
allocationReporter : nil ,
80
80
blockReporter : nil ,
81
- segmentReporter : nil ,
81
+ spanReporter : nil ,
82
82
errorReporter : nil ,
83
83
84
84
profilerActive : & Flag {},
@@ -136,7 +136,7 @@ func NewAgent() *Agent {
136
136
}
137
137
a .blockReporter = newProfileReporter (a , blockProfiler , blockProfilerConfig )
138
138
139
- a .segmentReporter = newSegmentReporter (a )
139
+ a .spanReporter = newSpanReporter (a )
140
140
a .errorReporter = newErrorReporter (a )
141
141
142
142
return a
@@ -174,7 +174,7 @@ func (a *Agent) Enable() {
174
174
a .cpuReporter .start ()
175
175
a .allocationReporter .start ()
176
176
a .blockReporter .start ()
177
- a .segmentReporter .start ()
177
+ a .spanReporter .start ()
178
178
a .errorReporter .start ()
179
179
a .processReporter .start ()
180
180
a .config .setAgentEnabled (true )
@@ -187,7 +187,7 @@ func (a *Agent) Disable() {
187
187
a .cpuReporter .stop ()
188
188
a .allocationReporter .stop ()
189
189
a .blockReporter .stop ()
190
- a .segmentReporter .stop ()
190
+ a .spanReporter .stop ()
191
191
a .errorReporter .stop ()
192
192
a .processReporter .stop ()
193
193
}
@@ -210,12 +210,12 @@ func (a *Agent) StopProfiling() {
210
210
a .blockReporter .stopProfiling ()
211
211
}
212
212
213
- func (a * Agent ) RecordSegment (name string , duration float64 ) {
213
+ func (a * Agent ) RecordSpan (name string , duration float64 ) {
214
214
if ! agentStarted {
215
215
return
216
216
}
217
217
218
- a .segmentReporter . recordSegment (name , duration )
218
+ a .spanReporter . recordSpan (name , duration )
219
219
}
220
220
221
221
func (a * Agent ) RecordError (group string , msg interface {}, skipFrames int ) {
0 commit comments