lib/opentelemetry/semantic_conventions/trace.rb in opentelemetry-semantic_conventions-1.4.0 vs lib/opentelemetry/semantic_conventions/trace.rb in opentelemetry-semantic_conventions-1.6.0

- old
+ new

@@ -5,10 +5,14 @@ # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module SemanticConventions module Trace + # The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable) + # @note This may be different from `faas.id` if an alias is involved + AWS_LAMBDA_INVOKED_ARN = 'aws.lambda.invoked_arn' + # An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers DB_SYSTEM = 'db.system' # The connection string used to connect to the database. It is recommended to remove embedded credentials DB_CONNECTION_STRING = 'db.connection_string' @@ -187,10 +191,28 @@ NET_HOST_PORT = 'net.host.port' # Local hostname or similar, see note below NET_HOST_NAME = 'net.host.name' + # The internet connection type currently being used by the host + NET_HOST_CONNECTION_TYPE = 'net.host.connection.type' + + # This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection + NET_HOST_CONNECTION_SUBTYPE = 'net.host.connection.subtype' + + # The name of the mobile carrier + NET_HOST_CARRIER_NAME = 'net.host.carrier.name' + + # The mobile carrier country code + NET_HOST_CARRIER_MCC = 'net.host.carrier.mcc' + + # The mobile carrier network code + NET_HOST_CARRIER_MNC = 'net.host.carrier.mnc' + + # The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network + NET_HOST_CARRIER_ICC = 'net.host.carrier.icc' + # A string identifying the messaging system MESSAGING_SYSTEM = 'messaging.system' # The message destination name. This might be equal to the span name but is required nevertheless MESSAGING_DESTINATION = 'messaging.destination' @@ -275,13 +297,15 @@ # The value `aws-api` RPC_SYSTEM = 'rpc.system' # The name of the service to which a request is made, as returned by the AWS SDK + # @note This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) RPC_SERVICE = 'rpc.service' # The name of the operation corresponding to the request, as returned by the AWS SDK + # @note This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) RPC_METHOD = 'rpc.method' # The keys in the `RequestItems` object field AWS_DYNAMODB_TABLE_NAMES = 'aws.dynamodb.table_names' @@ -373,12 +397,9 @@ # The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request RPC_GRPC_STATUS_CODE = 'rpc.grpc.status_code' # Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 does not specify this, the value can be omitted RPC_JSONRPC_VERSION = 'rpc.jsonrpc.version' - - # `method` property from request. Unlike `rpc.method`, this may not relate to the actual method being called. Useful for client-side traces since client does not know what will be called on the server - RPC_JSONRPC_METHOD = 'rpc.jsonrpc.method' # `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification RPC_JSONRPC_REQUEST_ID = 'rpc.jsonrpc.request_id' # `error.code` property of response if it is an error response \ No newline at end of file