Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Enable bool `json:"enable"` BatchSize int `json:"batchSize"` ChannelSize int `json:"channelSize"` Reporter json.RawMessage `json:"reporter"` }
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func (*Middleware) Close ¶
func (middle *Middleware) Close()
func (*Middleware) Construct ¶
func (middle *Middleware) Construct(options transports.MiddlewareOptions) (err error)
func (*Middleware) Handler ¶
func (middle *Middleware) Handler(next transports.Handler) transports.Handler
func (*Middleware) Name ¶
func (middle *Middleware) Name() string
type Reporter ¶
type Reporter interface { Construct(options ReporterOptions) (err error) Report(ctx context.Context, trace *Trace) }
type ReporterOptions ¶
type ReporterOptions struct { Log logs.Logger Config configures.Config }
type Span ¶
type Span struct { Id string `json:"id" avro:"id"` Endpoint string `json:"endpoint" avro:"endpoint"` Fn string `json:"fn" avro:"fn"` Begin time.Time `json:"begin" avro:"begin"` Waited time.Time `json:"waited" avro:"waited"` End time.Time `json:"end" avro:"end"` Tags map[string]string `json:"tags" avro:"tags"` Children []*Span `json:"children" avro:"children"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.