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 NetworkPeerPort ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.