Documentation ¶
Overview ¶
Package trace extends golang.org/x/net/trace.
Index ¶
- func NewContext(ctx context.Context, tr *Trace) context.Context
- type EventLog
- type Trace
- func (t *Trace) Debugf(format string, a ...interface{})
- func (t *Trace) Error(err error) error
- func (t *Trace) Errorf(format string, a ...interface{}) error
- func (t *Trace) Finish()
- func (t *Trace) Printf(format string, a ...interface{})
- func (t *Trace) SetError()
- func (t *Trace) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventLog ¶
type EventLog struct {
// contains filtered or unexported fields
}
EventLog is used for tracing long-lived objects.
func NewEventLog ¶
NewEventLog returns a new EventLog.
type Trace ¶
type Trace struct {
// contains filtered or unexported fields
}
A Trace represents an active request.
func (*Trace) Error ¶
Error marks the trace as having seen an error, and also logs it to the trace's log.
func (*Trace) Finish ¶
func (t *Trace) Finish()
Finish the trace. It should not be changed after this is called.
Click to show internal directories.
Click to hide internal directories.