Documentation ¶
Index ¶
- func MuxTagging(t Tracing) func(handler http.Handler) http.Handler
- type Config
- type Constructor
- type Noop
- func (n Noop) AttachTag(_ context.Context, _ string, _ interface{})
- func (n Noop) CreateRootMux() (*mux.Router, http.Handler)
- func (n Noop) DynamicFields() []log.DynamicFields
- func (n Noop) StartSpanFromContext(ctx context.Context, _ SpanConfig, callback func(ctx context.Context) error) error
- func (n Noop) WrapRoundTrip(rt http.RoundTripper) http.RoundTripper
- type Registry
- type SpanConfig
- type Tracing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Constructor ¶
type Noop ¶
type Noop struct{}
func (Noop) DynamicFields ¶
func (n Noop) DynamicFields() []log.DynamicFields
func (Noop) StartSpanFromContext ¶ added in v0.0.15
func (Noop) WrapRoundTrip ¶
func (n Noop) WrapRoundTrip(rt http.RoundTripper) http.RoundTripper
type Registry ¶
type Registry struct {
Constructors map[string]Constructor
}
type SpanConfig ¶ added in v0.0.15
type SpanConfig struct {
OperationName string
}
type Tracing ¶
type Tracing interface { WrapRoundTrip(rt http.RoundTripper) http.RoundTripper AttachTag(ctx context.Context, key string, value interface{}) DynamicFields() []log.DynamicFields CreateRootMux() (*mux.Router, http.Handler) StartSpanFromContext(ctx context.Context, cfg SpanConfig, callback func(ctx context.Context) error) error }
Click to show internal directories.
Click to hide internal directories.