fix:trace graceful stop,pre loss trace (#2358)

This commit is contained in:
maizige
2022-09-07 10:33:01 +08:00
committed by GitHub
parent 6078bf1a04
commit cfda972d50
8 changed files with 22 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ func TestDoRequest(t *testing.T) {
Batcher: "jaeger",
Sampler: 1.0,
})
defer ztrace.StopAgent()
svr := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
}))