Documentation ¶
Index ¶
- func NewTagsProvider(logTags []string) providers.TagsProvider
- type MapTags
- func (m *MapTags) Get(key string) (any, bool)
- func (m *MapTags) GetContextID() (string, bool)
- func (m *MapTags) GetError() (error, bool)
- func (m *MapTags) GetMetadata() (metadata.MD, bool)
- func (m *MapTags) GetMethod() (string, bool)
- func (m *MapTags) LogTags() map[string]any
- func (m *MapTags) Set(key string, value any) providers.Tags
- func (m *MapTags) WithContextID(contextID string) providers.Tags
- func (m *MapTags) WithError(err error) providers.Tags
- func (m *MapTags) WithMetadata(md metadata.MD) providers.Tags
- func (m *MapTags) WithMethod(method string) providers.Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTagsProvider ¶ added in v0.11.0
func NewTagsProvider(logTags []string) providers.TagsProvider
NewTagsProvider returns a new TagsProvider that returns a new Tags instance
Types ¶
type MapTags ¶
type MapTags struct {
// contains filtered or unexported fields
}
func (*MapTags) GetContextID ¶
Click to show internal directories.
Click to hide internal directories.