Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncorrectRecord = errors.New("received incorrect record")
Functions ¶
func KeyAsAttribute ¶ added in v0.24.3
KeyAsAttribute format a DHT key into a suitable tracing attribute. DHT keys can be either valid utf-8 or binary, when they are derived from, for example, a multihash. Tracing (and notably OpenTelemetry+grpc exporter) requires valid utf-8 for string attributes.
Types ¶
type LoggableProviderRecordBytes ¶
type LoggableProviderRecordBytes []byte
func (LoggableProviderRecordBytes) String ¶
func (lk LoggableProviderRecordBytes) String() string
type LoggableRecordKeyBytes ¶
type LoggableRecordKeyBytes []byte
func (LoggableRecordKeyBytes) String ¶
func (lk LoggableRecordKeyBytes) String() string
type LoggableRecordKeyString ¶
type LoggableRecordKeyString string
func (LoggableRecordKeyString) String ¶
func (lk LoggableRecordKeyString) String() string
Click to show internal directories.
Click to hide internal directories.