semconv

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DBRowsAffectedKey represents the number of rows affected.
	DBRowsAffectedKey = attribute.Key("db.rows_affected")

	// DBQueryParametersKey represents the query parameters.
	DBQueryParametersKey = attribute.Key("db.query.parameters")

	// DBBatchSizeKey represents the batch size.
	DBBatchSizeKey = attribute.Key("db.batch.size")

	// DBPrepareStmtNameKey represents the prepared statement name.
	DBPrepareStmtNameKey = attribute.Key("db.prepare_stmt.name")

	// DBSQLStateKey represents PostgreSQL error code,
	// see https://www.postgresql.org/docs/current/errcodes-appendix.html.
	DBSQLStateKey  = attribute.Key("db.sql_state")
	DBUserKey      = attribute.Key("db.user")
	DBStatementKey = attribute.Key("db.statement")
	DBSQLTableKey  = attribute.Key("db.sql_table")
)
View Source
const (
	// RPCGRPCStatusCodeKey is convention for numeric status code of a gRPC request.
	RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")

	// 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")
)

Semantic conventions for attribute keys for gRPC.

Variables

View Source
var (
	// RPCSystemGRPC Semantic convention for gRPC as the remoting system.
	RPCSystemGRPC = semconv.RPCSystemGRPC

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

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

Semantic conventions for common RPC attributes.

View Source
var (
	NetworkPeerAddressKey = semconv.NetworkPeerAddressKey
	NetworkPeerPortKey    = semconv.NetworkPeerPortKey

	ClientAddressKey = semconv.ClientAddressKey
	ClientPortKey    = semconv.ClientPortKey
)
View Source
var (
	// DBSystemPostgreSQL It represents the PostgreSQL as identified by the client instrumentation.
	DBSystemPostgreSQL = semconv.DBSystemPostgreSQL
)

Functions

func NetworkPeerAddress

func NetworkPeerAddress(val string) attribute.KeyValue

func NetworkPeerPort

func NetworkPeerPort(val int) attribute.KeyValue

Types

This section is empty.

Jump to

Keyboard shortcuts

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