package fields
import "github.com/influxdata/influxdb/pkg/tracing/fields"
Index ¶
- type Field
- func Bool(key string, val bool) Field
- func Duration(key string, val time.Duration) Field
- func Float64(key string, val float64) Field
- func Int64(key string, val int64) Field
- func String(key, val string) Field
- func Uint64(key string, val uint64) Field
- func (lf Field) Key() string
- func (lf Field) String() string
- func (lf Field) Value() interface{}
- type Fields
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field instances are constructed via Bool, String, and so on.
"heavily influenced by" (i.e., partially stolen from) https://github.com/opentracing/opentracing-go/log
func Bool ¶
Bool adds a bool-valued key:value pair to a Span.LogFields() record
func Duration ¶
Uint64 adds a uint64-valued key:value pair to a Span.LogFields() record
func Float64 ¶
Float64 adds a float64-valued key:value pair to a Span.LogFields() record
func Int64 ¶
/ Int64 adds an int64-valued key:value pair to a Span.LogFields() record
func String ¶
String adds a string-valued key:value pair to a Span.LogFields() record
func Uint64 ¶
Uint64 adds a uint64-valued key:value pair to a Span.LogFields() record
func (Field) Key ¶
Key returns the field's key.
func (Field) String ¶
String returns a string representation of the key and value.
func (Field) Value ¶
func (lf Field) Value() interface{}
Value returns the field's value as interface{}.
type Fields ¶
type Fields []Field
func New ¶
New creates a new set of fields, sorted by Key. Duplicate keys are removed.
func (*Fields) Merge ¶
Merge merges other with the current set, replacing any matching keys from other.
Source Files ¶
- Version
- v1.12.0 (latest)
- Published
- Apr 8, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 2 days ago –
Tools for package owners.