Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncorrectRecord = errors.New("接收到错误的记录")
ErrIncorrectRecord 接收到错误记录时返回的错误 返回值:
- error 错误信息
Functions ¶
func KeyAsAttribute ¶
KeyAsAttribute 将DHT键格式化为合适的跟踪属性 DHT键可以是有效的utf-8或二进制格式,例如当它们来自multihash时 跟踪(特别是OpenTelemetry+grpc导出器)要求字符串属性必须是有效的utf-8 参数:
- name: string 属性名称
- key: string DHT键值
返回值:
- attribute.KeyValue 格式化后的跟踪属性
Types ¶
type CtxMutex ¶
type CtxMutex chan struct{}
CtxMutex 带上下文的互斥锁
type LoggableProviderRecordBytes ¶
type LoggableProviderRecordBytes []byte
LoggableProviderRecordBytes 可记录的提供者记录字节数组
func (LoggableProviderRecordBytes) String ¶
func (lk LoggableProviderRecordBytes) String() string
String 实现Stringer接口,返回格式化的提供者记录字符串 返回值:
- string 格式化后的提供者记录字符串
type LoggableRecordKeyBytes ¶
type LoggableRecordKeyBytes []byte
LoggableRecordKeyBytes 可记录的字节数组类型记录键
func (LoggableRecordKeyBytes) String ¶
func (lk LoggableRecordKeyBytes) String() string
String 实现Stringer接口,返回格式化的记录键字符串 返回值:
- string 格式化后的记录键字符串
type LoggableRecordKeyString ¶
type LoggableRecordKeyString string
LoggableRecordKeyString 可记录的字符串类型记录键
func (LoggableRecordKeyString) String ¶
func (lk LoggableRecordKeyString) String() string
String 实现Stringer接口,返回格式化的记录键字符串 返回值:
- string 格式化后的记录键字符串
Click to show internal directories.
Click to hide internal directories.