New returns a new Attributes containing the key/value pair.
(key, value any)
| 45 | |
| 46 | // New returns a new Attributes containing the key/value pair. |
| 47 | func New(key, value any) *Attributes { |
| 48 | return &Attributes{ |
| 49 | key: key, |
| 50 | value: value, |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | // WithValue returns a new Attributes containing the previous keys and values |
| 55 | // and the new key/value pair. If the same key appears multiple times, the |
no outgoing calls