• Sameer Ajmani's avatar
    net/trace: add event logs. · 4a71d182
    Sameer Ajmani authored
    An event log is typically associated with a long-lived object, like an
    RPC connection.  Printf calls record events; Errorf calls record
    events marked as errors.  The HTTP endpoint /debug/events organizes
    event logs by family (usually the Go type name) and by
    time-since-last-error.  The expanded view shows recent events in the
    log and the call stack where the event log was created.
    
    Change-Id: I3461e0d63f39ce6495e16300299048e572b3aa19
    Reviewed-on: https://go-review.googlesource.com/12025Reviewed-by: 's avatarDavid Symonds <dsymonds@golang.org>
    4a71d182
trace_test.go 1004 Bytes