egrpcinteceptor

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RPCNameKey Name of message transmitted or received.
	RPCNameKey = attribute.Key("name")

	// RPCMessageTypeKey Type of message transmitted or received.
	RPCMessageTypeKey = attribute.Key("message.type")

	// RPCMessageIDKey Identifier of message transmitted or received.
	RPCMessageIDKey = attribute.Key("message.id")

	// RPCMessageCompressedSizeKey The compressed size of the message transmitted or received in bytes.
	RPCMessageCompressedSizeKey = attribute.Key("message.compressed_size")

	// RPCMessageUncompressedSizeKey The uncompressed size of the message transmitted or received in
	// bytes.
	RPCMessageUncompressedSizeKey = attribute.Key("message.uncompressed_size")

	GRPCKindKey = attribute.Key("rpc.grpc.kind")
)

Semantic conventions for attribute keys for gRPC.

Variables

View Source
var (
	MessageSent     = messageType(RPCMessageTypeSent)
	MessageReceived = messageType(RPCMessageTypeReceived)
)
View Source
var (
	// Semantic convention for gRPC as the remoting system.
	RPCSystemGRPC = semconv.RPCSystemKey.String("grpc")

	// Semantic convention for a message named message.
	RPCNameMessage = RPCNameKey.String("message")

	// Semantic conventions for RPC message types.
	RPCMessageTypeSent     = RPCMessageTypeKey.String("SENT")
	RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")

	GRPCKindUnary  = GRPCKindKey.String("unary")
	GRPCKindStream = GRPCKindKey.String("stream")
)

Semantic conventions for common RPC attributes.

Functions

func SplitMethodName added in v1.1.5

func SplitMethodName(fullMethodName string) (string, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL