Documentation
¶
Index ¶
- func FromNamedValue(arg driver.NamedValue) attribute.KeyValue
- func KeyFromNamedValue(arg driver.NamedValue) attribute.Key
- func KeyValue(key attribute.Key, val interface{}) attribute.KeyValue
- func KeyValueDuration(key attribute.Key, d time.Duration) attribute.KeyValue
- func SQLOperationName(query string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromNamedValue ¶
func FromNamedValue(arg driver.NamedValue) attribute.KeyValue
FromNamedValue converts driver.NamedValue to attribute.KeyValue.
func KeyFromNamedValue ¶
func KeyFromNamedValue(arg driver.NamedValue) attribute.Key
KeyFromNamedValue returns an attribute.Key from a given driver.NamedValue.
func KeyValueDuration ¶
KeyValueDuration converts time.Duration to attribute.KeyValue.
func SQLOperationName ¶
SQLOperationName attempts to get the first 'word' from a given SQL query, which usually is the operation name (e.g. 'SELECT').
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.