Versions in this module Expand all Collapse all v0 v0.1.0 Aug 22, 2023 Changes in this version + const DefaultTagsPrefix + var ErrInvalidCarrier = errors.New("grpctags: Invalid Inject/Extract carrier") + var ErrInvalidTagsVal = errors.New("grpctags: Invalid tagsVal") + var ErrMalformedTags = errors.New("grpctags: Failed to marshal/unmarshal tags") + var ErrTagsValNull = errors.New("grpctags: tagsVal is string null") + var NoopTags = &noopTags + func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor + func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor + func WithTags(ctx context.Context, tags Tags) context.Context + type Extractor interface + Extract func(reader interface{}) (Tags, error) + type Injector interface + Inject func(tags Tags, carrier interface{}) error + type Option func(*options) + func WithTagsPrefix(tagsPrefix string) Option + type Tags interface + Foreach func(f func(key string, val interface{}) error) error + Get func(key string) interface{} + Has func(key string) bool + Len func() int + Set func(key string, value interface{}) Tags + Values func() map[string]interface{} + func FromContext(ctx context.Context) Tags