package
1.1.1
Repository: https://github.com/userzhangjinlong/go-zero.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddResources add more resources in addition to configured trace name.
Extract extracts the metadata from ctx.
Inject injects cross-cutting concerns from the ctx into the metadata.
ParseFullMethod returns the method name and attributes.
PeerAttr returns the peer attributes.
PeerFromCtx returns the peer from ctx.
SpanInfo returns the span info.
StartAgent starts an opentelemetry agent.
StatusCodeAttr returns an attribute.KeyValue that represents the give c.
StopAgent shuts down the span processors in the order they were registered.
TracerFromContext returns a tracer in ctx, otherwise returns a global tracer.

# 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.
TraceName represents the tracing name.

# 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.
SpanIDFromContext returns the span id from ctx.
TraceIDFromContext returns the trace id from ctx.
TraceIdKey is the trace id header.

# Structs

A Config is an opentelemetry config.