Program Listing for File semantic_conventions.h

Return to documentation for file (/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-cpp/checkouts/v1.8.1/api/include/opentelemetry/trace/semantic_conventions.h)

/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

/*
  DO NOT EDIT, this is an Auto-generated file
  from buildscripts/semantic-convention/templates/SemanticAttributes.h.j2
*/

#pragma once

#include "opentelemetry/version.h"

OPENTELEMETRY_BEGIN_NAMESPACE
namespace trace
{

namespace SemanticConventions
{
static constexpr const char *kSchemaUrl = "https://opentelemetry.io/schemas/1.15.0";

static constexpr const char *kExceptionType = "exception.type";

static constexpr const char *kExceptionMessage = "exception.message";

static constexpr const char *kExceptionStacktrace = "exception.stacktrace";

static constexpr const char *kEventName = "event.name";

static constexpr const char *kEventDomain = "event.domain";

static constexpr const char *kAwsLambdaInvokedArn = "aws.lambda.invoked_arn";

static constexpr const char *kCloudeventsEventId = "cloudevents.event_id";

static constexpr const char *kCloudeventsEventSource = "cloudevents.event_source";

static constexpr const char *kCloudeventsEventSpecVersion = "cloudevents.event_spec_version";

static constexpr const char *kCloudeventsEventType = "cloudevents.event_type";

static constexpr const char *kCloudeventsEventSubject = "cloudevents.event_subject";

static constexpr const char *kOpentracingRefType = "opentracing.ref_type";

static constexpr const char *kDbSystem = "db.system";

static constexpr const char *kDbConnectionString = "db.connection_string";

static constexpr const char *kDbUser = "db.user";

static constexpr const char *kDbJdbcDriverClassname = "db.jdbc.driver_classname";

static constexpr const char *kDbName = "db.name";

static constexpr const char *kDbStatement = "db.statement";

static constexpr const char *kDbOperation = "db.operation";

static constexpr const char *kDbMssqlInstanceName = "db.mssql.instance_name";

static constexpr const char *kDbCassandraPageSize = "db.cassandra.page_size";

static constexpr const char *kDbCassandraConsistencyLevel = "db.cassandra.consistency_level";

static constexpr const char *kDbCassandraTable = "db.cassandra.table";

static constexpr const char *kDbCassandraIdempotence = "db.cassandra.idempotence";

static constexpr const char *kDbCassandraSpeculativeExecutionCount =
    "db.cassandra.speculative_execution_count";

static constexpr const char *kDbCassandraCoordinatorId = "db.cassandra.coordinator.id";

static constexpr const char *kDbCassandraCoordinatorDc = "db.cassandra.coordinator.dc";

static constexpr const char *kDbRedisDatabaseIndex = "db.redis.database_index";

static constexpr const char *kDbMongodbCollection = "db.mongodb.collection";

static constexpr const char *kDbSqlTable = "db.sql.table";

static constexpr const char *kOtelStatusCode = "otel.status_code";

static constexpr const char *kOtelStatusDescription = "otel.status_description";

static constexpr const char *kFaasTrigger = "faas.trigger";

static constexpr const char *kFaasExecution = "faas.execution";

static constexpr const char *kFaasDocumentCollection = "faas.document.collection";

static constexpr const char *kFaasDocumentOperation = "faas.document.operation";

static constexpr const char *kFaasDocumentTime = "faas.document.time";

static constexpr const char *kFaasDocumentName = "faas.document.name";

static constexpr const char *kFaasTime = "faas.time";

static constexpr const char *kFaasCron = "faas.cron";

static constexpr const char *kFaasColdstart = "faas.coldstart";

static constexpr const char *kFaasInvokedName = "faas.invoked_name";

static constexpr const char *kFaasInvokedProvider = "faas.invoked_provider";

static constexpr const char *kFaasInvokedRegion = "faas.invoked_region";

static constexpr const char *kNetTransport = "net.transport";

static constexpr const char *kNetAppProtocolName = "net.app.protocol.name";

static constexpr const char *kNetAppProtocolVersion = "net.app.protocol.version";

static constexpr const char *kNetSockPeerName = "net.sock.peer.name";

static constexpr const char *kNetSockPeerAddr = "net.sock.peer.addr";

static constexpr const char *kNetSockPeerPort = "net.sock.peer.port";

static constexpr const char *kNetSockFamily = "net.sock.family";

static constexpr const char *kNetPeerName = "net.peer.name";

static constexpr const char *kNetPeerPort = "net.peer.port";

static constexpr const char *kNetHostName = "net.host.name";

static constexpr const char *kNetHostPort = "net.host.port";

static constexpr const char *kNetSockHostAddr = "net.sock.host.addr";

static constexpr const char *kNetSockHostPort = "net.sock.host.port";

static constexpr const char *kNetHostConnectionType = "net.host.connection.type";

static constexpr const char *kNetHostConnectionSubtype = "net.host.connection.subtype";

static constexpr const char *kNetHostCarrierName = "net.host.carrier.name";

static constexpr const char *kNetHostCarrierMcc = "net.host.carrier.mcc";

static constexpr const char *kNetHostCarrierMnc = "net.host.carrier.mnc";

static constexpr const char *kNetHostCarrierIcc = "net.host.carrier.icc";

static constexpr const char *kPeerService = "peer.service";

static constexpr const char *kEnduserId = "enduser.id";

static constexpr const char *kEnduserRole = "enduser.role";

static constexpr const char *kEnduserScope = "enduser.scope";

static constexpr const char *kThreadId = "thread.id";

static constexpr const char *kThreadName = "thread.name";

static constexpr const char *kCodeFunction = "code.function";

static constexpr const char *kCodeNamespace = "code.namespace";

static constexpr const char *kCodeFilepath = "code.filepath";

static constexpr const char *kCodeLineno = "code.lineno";

static constexpr const char *kHttpMethod = "http.method";

static constexpr const char *kHttpStatusCode = "http.status_code";

static constexpr const char *kHttpFlavor = "http.flavor";

static constexpr const char *kHttpUserAgent = "http.user_agent";

static constexpr const char *kHttpRequestContentLength = "http.request_content_length";

static constexpr const char *kHttpResponseContentLength = "http.response_content_length";

static constexpr const char *kHttpUrl = "http.url";

static constexpr const char *kHttpResendCount = "http.resend_count";

static constexpr const char *kHttpScheme = "http.scheme";

static constexpr const char *kHttpTarget = "http.target";

static constexpr const char *kHttpRoute = "http.route";

static constexpr const char *kHttpClientIp = "http.client_ip";

static constexpr const char *kAwsDynamodbTableNames = "aws.dynamodb.table_names";

static constexpr const char *kAwsDynamodbConsumedCapacity = "aws.dynamodb.consumed_capacity";

static constexpr const char *kAwsDynamodbItemCollectionMetrics =
    "aws.dynamodb.item_collection_metrics";

static constexpr const char *kAwsDynamodbProvisionedReadCapacity =
    "aws.dynamodb.provisioned_read_capacity";

static constexpr const char *kAwsDynamodbProvisionedWriteCapacity =
    "aws.dynamodb.provisioned_write_capacity";

static constexpr const char *kAwsDynamodbConsistentRead = "aws.dynamodb.consistent_read";

static constexpr const char *kAwsDynamodbProjection = "aws.dynamodb.projection";

static constexpr const char *kAwsDynamodbLimit = "aws.dynamodb.limit";

static constexpr const char *kAwsDynamodbAttributesToGet = "aws.dynamodb.attributes_to_get";

static constexpr const char *kAwsDynamodbIndexName = "aws.dynamodb.index_name";

static constexpr const char *kAwsDynamodbSelect = "aws.dynamodb.select";

static constexpr const char *kAwsDynamodbGlobalSecondaryIndexes =
    "aws.dynamodb.global_secondary_indexes";

static constexpr const char *kAwsDynamodbLocalSecondaryIndexes =
    "aws.dynamodb.local_secondary_indexes";

static constexpr const char *kAwsDynamodbExclusiveStartTable = "aws.dynamodb.exclusive_start_table";

static constexpr const char *kAwsDynamodbTableCount = "aws.dynamodb.table_count";

static constexpr const char *kAwsDynamodbScanForward = "aws.dynamodb.scan_forward";

static constexpr const char *kAwsDynamodbSegment = "aws.dynamodb.segment";

static constexpr const char *kAwsDynamodbTotalSegments = "aws.dynamodb.total_segments";

static constexpr const char *kAwsDynamodbCount = "aws.dynamodb.count";

static constexpr const char *kAwsDynamodbScannedCount = "aws.dynamodb.scanned_count";

static constexpr const char *kAwsDynamodbAttributeDefinitions =
    "aws.dynamodb.attribute_definitions";

static constexpr const char *kAwsDynamodbGlobalSecondaryIndexUpdates =
    "aws.dynamodb.global_secondary_index_updates";

static constexpr const char *kGraphqlOperationName = "graphql.operation.name";

static constexpr const char *kGraphqlOperationType = "graphql.operation.type";

static constexpr const char *kGraphqlDocument = "graphql.document";

static constexpr const char *kMessagingSystem = "messaging.system";

static constexpr const char *kMessagingDestination = "messaging.destination";

static constexpr const char *kMessagingDestinationKind = "messaging.destination_kind";

static constexpr const char *kMessagingTempDestination = "messaging.temp_destination";

static constexpr const char *kMessagingProtocol = "messaging.protocol";

static constexpr const char *kMessagingProtocolVersion = "messaging.protocol_version";

static constexpr const char *kMessagingUrl = "messaging.url";

static constexpr const char *kMessagingMessageId = "messaging.message_id";

static constexpr const char *kMessagingConversationId = "messaging.conversation_id";

static constexpr const char *kMessagingMessagePayloadSizeBytes =
    "messaging.message_payload_size_bytes";

static constexpr const char *kMessagingMessagePayloadCompressedSizeBytes =
    "messaging.message_payload_compressed_size_bytes";

static constexpr const char *kMessagingOperation = "messaging.operation";

static constexpr const char *kMessagingConsumerId = "messaging.consumer_id";

static constexpr const char *kMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key";

static constexpr const char *kMessagingKafkaMessageKey = "messaging.kafka.message_key";

static constexpr const char *kMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group";

static constexpr const char *kMessagingKafkaClientId = "messaging.kafka.client_id";

static constexpr const char *kMessagingKafkaPartition = "messaging.kafka.partition";

static constexpr const char *kMessagingKafkaTombstone = "messaging.kafka.tombstone";

static constexpr const char *kMessagingRocketmqNamespace = "messaging.rocketmq.namespace";

static constexpr const char *kMessagingRocketmqClientGroup = "messaging.rocketmq.client_group";

static constexpr const char *kMessagingRocketmqClientId = "messaging.rocketmq.client_id";

static constexpr const char *kMessagingRocketmqDeliveryTimestamp =
    "messaging.rocketmq.delivery_timestamp";

static constexpr const char *kMessagingRocketmqDelayTimeLevel =
    "messaging.rocketmq.delay_time_level";

static constexpr const char *kMessagingRocketmqMessageGroup = "messaging.rocketmq.message_group";

static constexpr const char *kMessagingRocketmqMessageType = "messaging.rocketmq.message_type";

static constexpr const char *kMessagingRocketmqMessageTag = "messaging.rocketmq.message_tag";

static constexpr const char *kMessagingRocketmqMessageKeys = "messaging.rocketmq.message_keys";

static constexpr const char *kMessagingRocketmqConsumptionModel =
    "messaging.rocketmq.consumption_model";

static constexpr const char *kRpcSystem = "rpc.system";

static constexpr const char *kRpcService = "rpc.service";

static constexpr const char *kRpcMethod = "rpc.method";

static constexpr const char *kRpcGrpcStatusCode = "rpc.grpc.status_code";

static constexpr const char *kRpcJsonrpcVersion = "rpc.jsonrpc.version";

static constexpr const char *kRpcJsonrpcRequestId = "rpc.jsonrpc.request_id";

static constexpr const char *kRpcJsonrpcErrorCode = "rpc.jsonrpc.error_code";

static constexpr const char *kRpcJsonrpcErrorMessage = "rpc.jsonrpc.error_message";

// Enum definitions
namespace EventDomainValues
{
static constexpr const char *kBrowser = "browser";
static constexpr const char *kDevice = "device";
static constexpr const char *kK8s = "k8s";
}  // namespace EventDomainValues

namespace OpentracingRefTypeValues
{
static constexpr const char *kChildOf = "child_of";
static constexpr const char *kFollowsFrom = "follows_from";
}  // namespace OpentracingRefTypeValues

namespace DbSystemValues
{
static constexpr const char *kOtherSql = "other_sql";
static constexpr const char *kMssql = "mssql";
static constexpr const char *kMysql = "mysql";
static constexpr const char *kOracle = "oracle";
static constexpr const char *kDb2 = "db2";
static constexpr const char *kPostgresql = "postgresql";
static constexpr const char *kRedshift = "redshift";
static constexpr const char *kHive = "hive";
static constexpr const char *kCloudscape = "cloudscape";
static constexpr const char *kHsqldb = "hsqldb";
static constexpr const char *kProgress = "progress";
static constexpr const char *kMaxdb = "maxdb";
static constexpr const char *kHanadb = "hanadb";
static constexpr const char *kIngres = "ingres";
static constexpr const char *kFirstsql = "firstsql";
static constexpr const char *kEdb = "edb";
static constexpr const char *kCache = "cache";
static constexpr const char *kAdabas = "adabas";
static constexpr const char *kFirebird = "firebird";
static constexpr const char *kDerby = "derby";
static constexpr const char *kFilemaker = "filemaker";
static constexpr const char *kInformix = "informix";
static constexpr const char *kInstantdb = "instantdb";
static constexpr const char *kInterbase = "interbase";
static constexpr const char *kMariadb = "mariadb";
static constexpr const char *kNetezza = "netezza";
static constexpr const char *kPervasive = "pervasive";
static constexpr const char *kPointbase = "pointbase";
static constexpr const char *kSqlite = "sqlite";
static constexpr const char *kSybase = "sybase";
static constexpr const char *kTeradata = "teradata";
static constexpr const char *kVertica = "vertica";
static constexpr const char *kH2 = "h2";
static constexpr const char *kColdfusion = "coldfusion";
static constexpr const char *kCassandra = "cassandra";
static constexpr const char *kHbase = "hbase";
static constexpr const char *kMongodb = "mongodb";
static constexpr const char *kRedis = "redis";
static constexpr const char *kCouchbase = "couchbase";
static constexpr const char *kCouchdb = "couchdb";
static constexpr const char *kCosmosdb = "cosmosdb";
static constexpr const char *kDynamodb = "dynamodb";
static constexpr const char *kNeo4j = "neo4j";
static constexpr const char *kGeode = "geode";
static constexpr const char *kElasticsearch = "elasticsearch";
static constexpr const char *kMemcached = "memcached";
static constexpr const char *kCockroachdb = "cockroachdb";
static constexpr const char *kOpensearch = "opensearch";
}  // namespace DbSystemValues

namespace DbCassandraConsistencyLevelValues
{
static constexpr const char *kAll = "all";
static constexpr const char *kEachQuorum = "each_quorum";
static constexpr const char *kQuorum = "quorum";
static constexpr const char *kLocalQuorum = "local_quorum";
static constexpr const char *kOne = "one";
static constexpr const char *kTwo = "two";
static constexpr const char *kThree = "three";
static constexpr const char *kLocalOne = "local_one";
static constexpr const char *kAny = "any";
static constexpr const char *kSerial = "serial";
static constexpr const char *kLocalSerial = "local_serial";
}  // namespace DbCassandraConsistencyLevelValues

namespace OtelStatusCodeValues
{
static constexpr const char *kOk = "OK";
static constexpr const char *kError = "ERROR";
}  // namespace OtelStatusCodeValues

namespace FaasTriggerValues
{
static constexpr const char *kDatasource = "datasource";
static constexpr const char *kHttp = "http";
static constexpr const char *kPubsub = "pubsub";
static constexpr const char *kTimer = "timer";
static constexpr const char *kOther = "other";
}  // namespace FaasTriggerValues

namespace FaasDocumentOperationValues
{
static constexpr const char *kInsert = "insert";
static constexpr const char *kEdit = "edit";
static constexpr const char *kDelete = "delete";
}  // namespace FaasDocumentOperationValues

namespace FaasInvokedProviderValues
{
static constexpr const char *kAlibabaCloud = "alibaba_cloud";
static constexpr const char *kAws = "aws";
static constexpr const char *kAzure = "azure";
static constexpr const char *kGcp = "gcp";
static constexpr const char *kTencentCloud = "tencent_cloud";
}  // namespace FaasInvokedProviderValues

namespace NetTransportValues
{
static constexpr const char *kIpTcp = "ip_tcp";
static constexpr const char *kIpUdp = "ip_udp";
static constexpr const char *kPipe = "pipe";
static constexpr const char *kInproc = "inproc";
static constexpr const char *kOther = "other";
}  // namespace NetTransportValues

namespace NetSockFamilyValues
{
static constexpr const char *kInet = "inet";
static constexpr const char *kInet6 = "inet6";
static constexpr const char *kUnix = "unix";
}  // namespace NetSockFamilyValues

namespace NetHostConnectionTypeValues
{
static constexpr const char *kWifi = "wifi";
static constexpr const char *kWired = "wired";
static constexpr const char *kCell = "cell";
static constexpr const char *kUnavailable = "unavailable";
static constexpr const char *kUnknown = "unknown";
}  // namespace NetHostConnectionTypeValues

namespace NetHostConnectionSubtypeValues
{
static constexpr const char *kGprs = "gprs";
static constexpr const char *kEdge = "edge";
static constexpr const char *kUmts = "umts";
static constexpr const char *kCdma = "cdma";
static constexpr const char *kEvdo0 = "evdo_0";
static constexpr const char *kEvdoA = "evdo_a";
static constexpr const char *kCdma20001xrtt = "cdma2000_1xrtt";
static constexpr const char *kHsdpa = "hsdpa";
static constexpr const char *kHsupa = "hsupa";
static constexpr const char *kHspa = "hspa";
static constexpr const char *kIden = "iden";
static constexpr const char *kEvdoB = "evdo_b";
static constexpr const char *kLte = "lte";
static constexpr const char *kEhrpd = "ehrpd";
static constexpr const char *kHspap = "hspap";
static constexpr const char *kGsm = "gsm";
static constexpr const char *kTdScdma = "td_scdma";
static constexpr const char *kIwlan = "iwlan";
static constexpr const char *kNr = "nr";
static constexpr const char *kNrnsa = "nrnsa";
static constexpr const char *kLteCa = "lte_ca";
}  // namespace NetHostConnectionSubtypeValues

namespace HttpFlavorValues
{
static constexpr const char *kHttp10 = "1.0";
static constexpr const char *kHttp11 = "1.1";
static constexpr const char *kHttp20 = "2.0";
static constexpr const char *kHttp30 = "3.0";
static constexpr const char *kSpdy = "SPDY";
static constexpr const char *kQuic = "QUIC";
}  // namespace HttpFlavorValues

namespace GraphqlOperationTypeValues
{
static constexpr const char *kQuery = "query";
static constexpr const char *kMutation = "mutation";
static constexpr const char *kSubscription = "subscription";
}  // namespace GraphqlOperationTypeValues

namespace MessagingDestinationKindValues
{
static constexpr const char *kQueue = "queue";
static constexpr const char *kTopic = "topic";
}  // namespace MessagingDestinationKindValues

namespace MessagingOperationValues
{
static constexpr const char *kReceive = "receive";
static constexpr const char *kProcess = "process";
}  // namespace MessagingOperationValues

namespace MessagingRocketmqMessageTypeValues
{
static constexpr const char *kNormal = "normal";
static constexpr const char *kFifo = "fifo";
static constexpr const char *kDelay = "delay";
static constexpr const char *kTransaction = "transaction";
}  // namespace MessagingRocketmqMessageTypeValues

namespace MessagingRocketmqConsumptionModelValues
{
static constexpr const char *kClustering = "clustering";
static constexpr const char *kBroadcasting = "broadcasting";
}  // namespace MessagingRocketmqConsumptionModelValues

namespace RpcSystemValues
{
static constexpr const char *kGrpc = "grpc";
static constexpr const char *kJavaRmi = "java_rmi";
static constexpr const char *kDotnetWcf = "dotnet_wcf";
static constexpr const char *kApacheDubbo = "apache_dubbo";
}  // namespace RpcSystemValues

namespace RpcGrpcStatusCodeValues
{
static constexpr const int kOk = 0;
static constexpr const int kCancelled = 1;
static constexpr const int kUnknown = 2;
static constexpr const int kInvalidArgument = 3;
static constexpr const int kDeadlineExceeded = 4;
static constexpr const int kNotFound = 5;
static constexpr const int kAlreadyExists = 6;
static constexpr const int kPermissionDenied = 7;
static constexpr const int kResourceExhausted = 8;
static constexpr const int kFailedPrecondition = 9;
static constexpr const int kAborted = 10;
static constexpr const int kOutOfRange = 11;
static constexpr const int kUnimplemented = 12;
static constexpr const int kInternal = 13;
static constexpr const int kUnavailable = 14;
static constexpr const int kDataLoss = 15;
static constexpr const int kUnauthenticated = 16;
}  // namespace RpcGrpcStatusCodeValues

}  // namespace SemanticConventions
}  // namespace trace
OPENTELEMETRY_END_NAMESPACE