mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-19 14:57:04 +00:00
Add tracing annotations
This patch changes several internal packages to receive and pass tracing annotations, making use of the new tracing library, so we can have better debugging information.
This commit is contained in:
@@ -15,8 +15,7 @@ import (
|
||||
|
||||
_ "net/http/pprof"
|
||||
|
||||
"golang.org/x/net/trace"
|
||||
|
||||
"blitiri.com.ar/go/chasquid/internal/nettrace"
|
||||
"blitiri.com.ar/go/chasquid/internal/smtp"
|
||||
"blitiri.com.ar/go/log"
|
||||
)
|
||||
@@ -148,7 +147,7 @@ func serial(id int) {
|
||||
}
|
||||
|
||||
func one() error {
|
||||
tr := trace.New("one", *addr)
|
||||
tr := nettrace.New("one", *addr)
|
||||
defer tr.Finish()
|
||||
|
||||
conn, err := net.Dial("tcp", *addr)
|
||||
|
||||
Reference in New Issue
Block a user