Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.

Commit 10391bc

Browse files
authored
Fix http client timeout (#248)
* fix http client timeout, and test span counter * bump version to 0.4.1 * revert span counter * revert version change
1 parent 36943c5 commit 10391bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/recorder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func NewSpanRecorder(agent *Agent) *SpanRecorder {
8080
r.cache = agent.cache
8181
r.flushFrequency = agent.flushFrequency
8282
r.url = agent.getUrl("api/agent/ingest")
83-
r.client = &http.Client{}
83+
r.client = &http.Client{Timeout: 60 * time.Second}
8484
r.stats = &RecorderStats{}
8585
r.t.Go(r.loop)
8686
return r

0 commit comments

Comments
 (0)