package
0.0.6
Repository: https://github.com/coderi421/gframework.git
Documentation: pkg.go.dev

# Functions

Extract extracts the metadata from ctx.
No description provided by the author
Inject injects the metadata into ctx.
ParseFullMethod returns the method name and attributes.
PeerAttr returns the peer attributes.
PeerFromCtx returns the peer from ctx.
SpanInfo returns the span info.
StatusCodeAttr returns an attribute.KeyValue that represents the give c.

# Constants

GRPCStatusCodeKey is convention for numeric status code of a gRPC request.
RPCMessageCompressedSizeKey is the compressed size of the message transmitted or received in bytes.
RPCMessageIDKey is the identifier of message transmitted or received.
RPCMessageTypeKey is the type of message transmitted or received.
RPCMessageUncompressedSizeKey is the uncompressed size of the message transmitted or received in bytes.
RPCNameKey is the name of message transmitted or received.

# Variables

MessageReceived is the type of received messages.
MessageSent is the type of sent messages.
RPCMessageTypeReceived is the semantic conventions for the received RPC message types.
RPCMessageTypeSent is the semantic conventions for sent RPC message types.
RPCNameMessage is the semantic convention for a message named message.
RPCSystemGRPC is the semantic convention for gRPC as the remoting system.

# Structs

Options 这个配置和 业务中 app 中的 tracing 冗余,为的是将 tracing 从业务中解耦出来.