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() []zapctx.DynamicFields
- func (n Noop) GrpcClientInterceptors(_ string) ([]grpc.UnaryClientInterceptor, []grpc.StreamClientInterceptor)
- func (n Noop) GrpcServerInterceptors(_ string) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
- 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() []zapctx.DynamicFields
func (Noop) GrpcClientInterceptors ¶ added in v0.2.0
func (n Noop) GrpcClientInterceptors(_ string) ([]grpc.UnaryClientInterceptor, []grpc.StreamClientInterceptor)
func (Noop) GrpcServerInterceptors ¶ added in v0.2.0
func (n Noop) GrpcServerInterceptors(_ string) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
func (Noop) StartSpanFromContext ¶
func (Noop) WrapRoundTrip ¶
func (n Noop) WrapRoundTrip(rt http.RoundTripper) http.RoundTripper
type Registry ¶
type Registry struct {
Constructors map[string]Constructor
}
type SpanConfig ¶
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() []zapctx.DynamicFields CreateRootMux() (*mux.Router, http.Handler) GrpcServerInterceptors(serviceName string) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor) GrpcClientInterceptors(serviceName string) ([]grpc.UnaryClientInterceptor, []grpc.StreamClientInterceptor) StartSpanFromContext(ctx context.Context, cfg SpanConfig, callback func(ctx context.Context) error) error }
Click to show internal directories.
Click to hide internal directories.