aws_attributes.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. /*
  2. * Copyright The OpenTelemetry Authors
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. /*
  6. * DO NOT EDIT, this is an Auto-generated file from:
  7. * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
  8. */
  9. #pragma once
  10. #include "opentelemetry/common/macros.h"
  11. #include "opentelemetry/version.h"
  12. OPENTELEMETRY_BEGIN_NAMESPACE
  13. namespace semconv
  14. {
  15. namespace aws
  16. {
  17. /**
  18. The unique identifier of the AWS Bedrock Guardrail. A <a
  19. href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html">guardrail</a> helps
  20. safeguard and prevent unwanted behavior from model responses or user messages.
  21. */
  22. static constexpr const char *kAwsBedrockGuardrailId = "aws.bedrock.guardrail.id";
  23. /**
  24. The unique identifier of the AWS Bedrock Knowledge base. A <a
  25. href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html">knowledge base</a>
  26. is a bank of information that can be queried by models to generate more relevant responses and
  27. augment prompts.
  28. */
  29. static constexpr const char *kAwsBedrockKnowledgeBaseId = "aws.bedrock.knowledge_base.id";
  30. /**
  31. The JSON-serialized value of each item in the @code AttributeDefinitions @endcode request field.
  32. */
  33. static constexpr const char *kAwsDynamodbAttributeDefinitions =
  34. "aws.dynamodb.attribute_definitions";
  35. /**
  36. The value of the @code AttributesToGet @endcode request parameter.
  37. */
  38. static constexpr const char *kAwsDynamodbAttributesToGet = "aws.dynamodb.attributes_to_get";
  39. /**
  40. The value of the @code ConsistentRead @endcode request parameter.
  41. */
  42. static constexpr const char *kAwsDynamodbConsistentRead = "aws.dynamodb.consistent_read";
  43. /**
  44. The JSON-serialized value of each item in the @code ConsumedCapacity @endcode response field.
  45. */
  46. static constexpr const char *kAwsDynamodbConsumedCapacity = "aws.dynamodb.consumed_capacity";
  47. /**
  48. The value of the @code Count @endcode response parameter.
  49. */
  50. static constexpr const char *kAwsDynamodbCount = "aws.dynamodb.count";
  51. /**
  52. The value of the @code ExclusiveStartTableName @endcode request parameter.
  53. */
  54. static constexpr const char *kAwsDynamodbExclusiveStartTable = "aws.dynamodb.exclusive_start_table";
  55. /**
  56. The JSON-serialized value of each item in the @code GlobalSecondaryIndexUpdates @endcode request
  57. field.
  58. */
  59. static constexpr const char *kAwsDynamodbGlobalSecondaryIndexUpdates =
  60. "aws.dynamodb.global_secondary_index_updates";
  61. /**
  62. The JSON-serialized value of each item of the @code GlobalSecondaryIndexes @endcode request field
  63. */
  64. static constexpr const char *kAwsDynamodbGlobalSecondaryIndexes =
  65. "aws.dynamodb.global_secondary_indexes";
  66. /**
  67. The value of the @code IndexName @endcode request parameter.
  68. */
  69. static constexpr const char *kAwsDynamodbIndexName = "aws.dynamodb.index_name";
  70. /**
  71. The JSON-serialized value of the @code ItemCollectionMetrics @endcode response field.
  72. */
  73. static constexpr const char *kAwsDynamodbItemCollectionMetrics =
  74. "aws.dynamodb.item_collection_metrics";
  75. /**
  76. The value of the @code Limit @endcode request parameter.
  77. */
  78. static constexpr const char *kAwsDynamodbLimit = "aws.dynamodb.limit";
  79. /**
  80. The JSON-serialized value of each item of the @code LocalSecondaryIndexes @endcode request field.
  81. */
  82. static constexpr const char *kAwsDynamodbLocalSecondaryIndexes =
  83. "aws.dynamodb.local_secondary_indexes";
  84. /**
  85. The value of the @code ProjectionExpression @endcode request parameter.
  86. */
  87. static constexpr const char *kAwsDynamodbProjection = "aws.dynamodb.projection";
  88. /**
  89. The value of the @code ProvisionedThroughput.ReadCapacityUnits @endcode request parameter.
  90. */
  91. static constexpr const char *kAwsDynamodbProvisionedReadCapacity =
  92. "aws.dynamodb.provisioned_read_capacity";
  93. /**
  94. The value of the @code ProvisionedThroughput.WriteCapacityUnits @endcode request parameter.
  95. */
  96. static constexpr const char *kAwsDynamodbProvisionedWriteCapacity =
  97. "aws.dynamodb.provisioned_write_capacity";
  98. /**
  99. The value of the @code ScanIndexForward @endcode request parameter.
  100. */
  101. static constexpr const char *kAwsDynamodbScanForward = "aws.dynamodb.scan_forward";
  102. /**
  103. The value of the @code ScannedCount @endcode response parameter.
  104. */
  105. static constexpr const char *kAwsDynamodbScannedCount = "aws.dynamodb.scanned_count";
  106. /**
  107. The value of the @code Segment @endcode request parameter.
  108. */
  109. static constexpr const char *kAwsDynamodbSegment = "aws.dynamodb.segment";
  110. /**
  111. The value of the @code Select @endcode request parameter.
  112. */
  113. static constexpr const char *kAwsDynamodbSelect = "aws.dynamodb.select";
  114. /**
  115. The number of items in the @code TableNames @endcode response parameter.
  116. */
  117. static constexpr const char *kAwsDynamodbTableCount = "aws.dynamodb.table_count";
  118. /**
  119. The keys in the @code RequestItems @endcode object field.
  120. */
  121. static constexpr const char *kAwsDynamodbTableNames = "aws.dynamodb.table_names";
  122. /**
  123. The value of the @code TotalSegments @endcode request parameter.
  124. */
  125. static constexpr const char *kAwsDynamodbTotalSegments = "aws.dynamodb.total_segments";
  126. /**
  127. The ARN of an <a
  128. href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html">ECS cluster</a>.
  129. */
  130. static constexpr const char *kAwsEcsClusterArn = "aws.ecs.cluster.arn";
  131. /**
  132. The Amazon Resource Name (ARN) of an <a
  133. href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html">ECS
  134. container instance</a>.
  135. */
  136. static constexpr const char *kAwsEcsContainerArn = "aws.ecs.container.arn";
  137. /**
  138. The <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html">launch
  139. type</a> for an ECS task.
  140. */
  141. static constexpr const char *kAwsEcsLaunchtype = "aws.ecs.launchtype";
  142. /**
  143. The ARN of a running <a
  144. href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids">ECS
  145. task</a>.
  146. */
  147. static constexpr const char *kAwsEcsTaskArn = "aws.ecs.task.arn";
  148. /**
  149. The family name of the <a
  150. href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html">ECS task
  151. definition</a> used to create the ECS task.
  152. */
  153. static constexpr const char *kAwsEcsTaskFamily = "aws.ecs.task.family";
  154. /**
  155. The ID of a running ECS task. The ID MUST be extracted from @code task.arn @endcode.
  156. */
  157. static constexpr const char *kAwsEcsTaskId = "aws.ecs.task.id";
  158. /**
  159. The revision for the task definition used to create the ECS task.
  160. */
  161. static constexpr const char *kAwsEcsTaskRevision = "aws.ecs.task.revision";
  162. /**
  163. The ARN of an EKS cluster.
  164. */
  165. static constexpr const char *kAwsEksClusterArn = "aws.eks.cluster.arn";
  166. /**
  167. The AWS extended request ID as returned in the response header @code x-amz-id-2 @endcode.
  168. */
  169. static constexpr const char *kAwsExtendedRequestId = "aws.extended_request_id";
  170. /**
  171. The name of the AWS Kinesis <a
  172. href="https://docs.aws.amazon.com/streams/latest/dev/introduction.html">stream</a> the request
  173. refers to. Corresponds to the @code --stream-name @endcode parameter of the Kinesis <a
  174. href="https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html">describe-stream</a>
  175. operation.
  176. */
  177. static constexpr const char *kAwsKinesisStreamName = "aws.kinesis.stream_name";
  178. /**
  179. The full invoked ARN as provided on the @code Context @endcode passed to the function (@code
  180. Lambda-Runtime-Invoked-Function-Arn @endcode header on the @code /runtime/invocation/next @endcode
  181. applicable). <p> This may be different from @code cloud.resource_id @endcode if an alias is
  182. involved.
  183. */
  184. static constexpr const char *kAwsLambdaInvokedArn = "aws.lambda.invoked_arn";
  185. /**
  186. The UUID of the <a
  187. href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html">AWS
  188. Lambda EvenSource Mapping</a>. An event source is mapped to a lambda function. It's contents are
  189. read by Lambda and used to trigger a function. This isn't available in the lambda execution
  190. context or the lambda runtime environtment. This is going to be populated by the AWS SDK for each
  191. language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update
  192. EventSourceMapping.
  193. */
  194. static constexpr const char *kAwsLambdaResourceMappingId = "aws.lambda.resource_mapping.id";
  195. /**
  196. The Amazon Resource Name(s) (ARN) of the AWS log group(s).
  197. <p>
  198. See the <a
  199. href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format">log
  200. group ARN format documentation</a>.
  201. */
  202. static constexpr const char *kAwsLogGroupArns = "aws.log.group.arns";
  203. /**
  204. The name(s) of the AWS log group(s) an application is writing to.
  205. <p>
  206. Multiple log groups must be supported for cases like multi-container applications, where a single
  207. application has sidecar containers, and each write to their own log group.
  208. */
  209. static constexpr const char *kAwsLogGroupNames = "aws.log.group.names";
  210. /**
  211. The ARN(s) of the AWS log stream(s).
  212. <p>
  213. See the <a
  214. href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format">log
  215. stream ARN format documentation</a>. One log group can contain several log streams, so these ARNs
  216. necessarily identify both a log group and a log stream.
  217. */
  218. static constexpr const char *kAwsLogStreamArns = "aws.log.stream.arns";
  219. /**
  220. The name(s) of the AWS log stream(s) an application is writing to.
  221. */
  222. static constexpr const char *kAwsLogStreamNames = "aws.log.stream.names";
  223. /**
  224. The AWS request ID as returned in the response headers @code x-amzn-requestid @endcode, @code
  225. x-amzn-request-id @endcode or @code x-amz-request-id @endcode.
  226. */
  227. static constexpr const char *kAwsRequestId = "aws.request_id";
  228. /**
  229. The S3 bucket name the request refers to. Corresponds to the @code --bucket @endcode parameter of
  230. the <a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html">S3 API</a>
  231. operations. <p> The @code bucket @endcode attribute is applicable to all S3 operations that
  232. reference a bucket, i.e. that require the bucket name as a mandatory parameter. This applies to
  233. almost all S3 operations except @code list-buckets @endcode.
  234. */
  235. static constexpr const char *kAwsS3Bucket = "aws.s3.bucket";
  236. /**
  237. The source object (in the form @code bucket @endcode/@code key @endcode) for the copy operation.
  238. <p>
  239. The @code copy_source @endcode attribute applies to S3 copy operations and corresponds to the
  240. @code --copy-source @endcode parameter of the <a
  241. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html">copy-object
  242. operation within the S3 API</a>. This applies in particular to the following operations: <ul>
  243. <li><a
  244. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html">copy-object</a></li>
  245. <li><a
  246. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html">upload-part-copy</a></li>
  247. </ul>
  248. */
  249. static constexpr const char *kAwsS3CopySource = "aws.s3.copy_source";
  250. /**
  251. The delete request container that specifies the objects to be deleted.
  252. <p>
  253. The @code delete @endcode attribute is only applicable to the <a
  254. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html">delete-object</a>
  255. operation. The @code delete @endcode attribute corresponds to the @code --delete @endcode
  256. parameter of the <a
  257. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html">delete-objects
  258. operation within the S3 API</a>.
  259. */
  260. static constexpr const char *kAwsS3Delete = "aws.s3.delete";
  261. /**
  262. The S3 object key the request refers to. Corresponds to the @code --key @endcode parameter of the
  263. <a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html">S3 API</a> operations.
  264. <p>
  265. The @code key @endcode attribute is applicable to all object-related S3 operations, i.e. that
  266. require the object key as a mandatory parameter. This applies in particular to the following
  267. operations: <ul> <li><a
  268. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html">copy-object</a></li>
  269. <li><a
  270. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html">delete-object</a></li>
  271. <li><a
  272. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html">get-object</a></li>
  273. <li><a
  274. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html">head-object</a></li>
  275. <li><a
  276. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html">put-object</a></li>
  277. <li><a
  278. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html">restore-object</a></li>
  279. <li><a
  280. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html">select-object-content</a></li>
  281. <li><a
  282. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html">abort-multipart-upload</a></li>
  283. <li><a
  284. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html">complete-multipart-upload</a></li>
  285. <li><a
  286. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html">create-multipart-upload</a></li>
  287. <li><a
  288. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html">list-parts</a></li>
  289. <li><a
  290. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html">upload-part</a></li>
  291. <li><a
  292. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html">upload-part-copy</a></li>
  293. </ul>
  294. */
  295. static constexpr const char *kAwsS3Key = "aws.s3.key";
  296. /**
  297. The part number of the part being uploaded in a multipart-upload operation. This is a positive
  298. integer between 1 and 10,000. <p> The @code part_number @endcode attribute is only applicable to
  299. the <a
  300. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html">upload-part</a> and
  301. <a
  302. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html">upload-part-copy</a>
  303. operations. The @code part_number @endcode attribute corresponds to the @code --part-number
  304. @endcode parameter of the <a
  305. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html">upload-part
  306. operation within the S3 API</a>.
  307. */
  308. static constexpr const char *kAwsS3PartNumber = "aws.s3.part_number";
  309. /**
  310. Upload ID that identifies the multipart upload.
  311. <p>
  312. The @code upload_id @endcode attribute applies to S3 multipart-upload operations and corresponds
  313. to the @code --upload-id @endcode parameter of the <a
  314. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html">S3 API</a> multipart
  315. operations. This applies in particular to the following operations: <ul> <li><a
  316. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html">abort-multipart-upload</a></li>
  317. <li><a
  318. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html">complete-multipart-upload</a></li>
  319. <li><a
  320. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html">list-parts</a></li>
  321. <li><a
  322. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html">upload-part</a></li>
  323. <li><a
  324. href="https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html">upload-part-copy</a></li>
  325. </ul>
  326. */
  327. static constexpr const char *kAwsS3UploadId = "aws.s3.upload_id";
  328. /**
  329. The ARN of the Secret stored in the Secrets Mangger
  330. */
  331. static constexpr const char *kAwsSecretsmanagerSecretArn = "aws.secretsmanager.secret.arn";
  332. /**
  333. The ARN of the AWS SNS Topic. An Amazon SNS <a
  334. href="https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html">topic</a> is a logical
  335. access point that acts as a communication channel.
  336. */
  337. static constexpr const char *kAwsSnsTopicArn = "aws.sns.topic.arn";
  338. /**
  339. The URL of the AWS SQS Queue. It's a unique identifier for a queue in Amazon Simple Queue Service
  340. (SQS) and is used to access the queue and perform actions on it.
  341. */
  342. static constexpr const char *kAwsSqsQueueUrl = "aws.sqs.queue.url";
  343. /**
  344. The ARN of the AWS Step Functions Activity.
  345. */
  346. static constexpr const char *kAwsStepFunctionsActivityArn = "aws.step_functions.activity.arn";
  347. /**
  348. The ARN of the AWS Step Functions State Machine.
  349. */
  350. static constexpr const char *kAwsStepFunctionsStateMachineArn =
  351. "aws.step_functions.state_machine.arn";
  352. namespace AwsEcsLaunchtypeValues
  353. {
  354. /**
  355. none
  356. */
  357. static constexpr const char *kEc2 = "ec2";
  358. /**
  359. none
  360. */
  361. static constexpr const char *kFargate = "fargate";
  362. } // namespace AwsEcsLaunchtypeValues
  363. } // namespace aws
  364. } // namespace semconv
  365. OPENTELEMETRY_END_NAMESPACE