resource.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981
  1. // Copyright The OpenTelemetry Authors
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Code generated from semantic convention specification. DO NOT EDIT.
  15. package semconv // import "go.opentelemetry.io/otel/semconv/v1.10.0"
  16. import "go.opentelemetry.io/otel/attribute"
  17. // A cloud environment (e.g. GCP, Azure, AWS)
  18. const (
  19. // Name of the cloud provider.
  20. //
  21. // Type: Enum
  22. // Required: No
  23. // Stability: stable
  24. CloudProviderKey = attribute.Key("cloud.provider")
  25. // The cloud account ID the resource is assigned to.
  26. //
  27. // Type: string
  28. // Required: No
  29. // Stability: stable
  30. // Examples: '111111111111', 'opentelemetry'
  31. CloudAccountIDKey = attribute.Key("cloud.account.id")
  32. // The geographical region the resource is running.
  33. //
  34. // Type: string
  35. // Required: No
  36. // Stability: stable
  37. // Examples: 'us-central1', 'us-east-1'
  38. // Note: Refer to your provider's docs to see the available regions, for example
  39. // [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-
  40. // detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-
  41. // infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/en-
  42. // us/global-infrastructure/geographies/), [Google Cloud
  43. // regions](https://cloud.google.com/about/locations), or [Tencent Cloud
  44. // regions](https://intl.cloud.tencent.com/document/product/213/6091).
  45. CloudRegionKey = attribute.Key("cloud.region")
  46. // Cloud regions often have multiple, isolated locations known as zones to
  47. // increase availability. Availability zone represents the zone where the resource
  48. // is running.
  49. //
  50. // Type: string
  51. // Required: No
  52. // Stability: stable
  53. // Examples: 'us-east-1c'
  54. // Note: Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
  55. CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
  56. // The cloud platform in use.
  57. //
  58. // Type: Enum
  59. // Required: No
  60. // Stability: stable
  61. // Note: The prefix of the service SHOULD match the one specified in
  62. // `cloud.provider`.
  63. CloudPlatformKey = attribute.Key("cloud.platform")
  64. )
  65. var (
  66. // Alibaba Cloud
  67. CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
  68. // Amazon Web Services
  69. CloudProviderAWS = CloudProviderKey.String("aws")
  70. // Microsoft Azure
  71. CloudProviderAzure = CloudProviderKey.String("azure")
  72. // Google Cloud Platform
  73. CloudProviderGCP = CloudProviderKey.String("gcp")
  74. // Tencent Cloud
  75. CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
  76. )
  77. var (
  78. // Alibaba Cloud Elastic Compute Service
  79. CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
  80. // Alibaba Cloud Function Compute
  81. CloudPlatformAlibabaCloudFc = CloudPlatformKey.String("alibaba_cloud_fc")
  82. // AWS Elastic Compute Cloud
  83. CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
  84. // AWS Elastic Container Service
  85. CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
  86. // AWS Elastic Kubernetes Service
  87. CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
  88. // AWS Lambda
  89. CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
  90. // AWS Elastic Beanstalk
  91. CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
  92. // AWS App Runner
  93. CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
  94. // Azure Virtual Machines
  95. CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm")
  96. // Azure Container Instances
  97. CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances")
  98. // Azure Kubernetes Service
  99. CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks")
  100. // Azure Functions
  101. CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions")
  102. // Azure App Service
  103. CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service")
  104. // Google Cloud Compute Engine (GCE)
  105. CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
  106. // Google Cloud Run
  107. CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
  108. // Google Cloud Kubernetes Engine (GKE)
  109. CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
  110. // Google Cloud Functions (GCF)
  111. CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
  112. // Google Cloud App Engine (GAE)
  113. CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
  114. // Tencent Cloud Cloud Virtual Machine (CVM)
  115. CloudPlatformTencentCloudCvm = CloudPlatformKey.String("tencent_cloud_cvm")
  116. // Tencent Cloud Elastic Kubernetes Service (EKS)
  117. CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
  118. // Tencent Cloud Serverless Cloud Function (SCF)
  119. CloudPlatformTencentCloudScf = CloudPlatformKey.String("tencent_cloud_scf")
  120. )
  121. // Resources used by AWS Elastic Container Service (ECS).
  122. const (
  123. // The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.
  124. // amazon.com/AmazonECS/latest/developerguide/ECS_instances.html).
  125. //
  126. // Type: string
  127. // Required: No
  128. // Stability: stable
  129. // Examples: 'arn:aws:ecs:us-
  130. // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9'
  131. AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
  132. // The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/develo
  133. // perguide/clusters.html).
  134. //
  135. // Type: string
  136. // Required: No
  137. // Stability: stable
  138. // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster'
  139. AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
  140. // The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/l
  141. // aunch_types.html) for an ECS task.
  142. //
  143. // Type: Enum
  144. // Required: No
  145. // Stability: stable
  146. AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
  147. // The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/lates
  148. // t/developerguide/task_definitions.html).
  149. //
  150. // Type: string
  151. // Required: No
  152. // Stability: stable
  153. // Examples: 'arn:aws:ecs:us-
  154. // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b'
  155. AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
  156. // The task definition family this task definition is a member of.
  157. //
  158. // Type: string
  159. // Required: No
  160. // Stability: stable
  161. // Examples: 'opentelemetry-family'
  162. AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
  163. // The revision for this task definition.
  164. //
  165. // Type: string
  166. // Required: No
  167. // Stability: stable
  168. // Examples: '8', '26'
  169. AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
  170. )
  171. var (
  172. // ec2
  173. AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
  174. // fargate
  175. AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
  176. )
  177. // Resources used by AWS Elastic Kubernetes Service (EKS).
  178. const (
  179. // The ARN of an EKS cluster.
  180. //
  181. // Type: string
  182. // Required: No
  183. // Stability: stable
  184. // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster'
  185. AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
  186. )
  187. // Resources specific to Amazon Web Services.
  188. const (
  189. // The name(s) of the AWS log group(s) an application is writing to.
  190. //
  191. // Type: string[]
  192. // Required: No
  193. // Stability: stable
  194. // Examples: '/aws/lambda/my-function', 'opentelemetry-service'
  195. // Note: Multiple log groups must be supported for cases like multi-container
  196. // applications, where a single application has sidecar containers, and each write
  197. // to their own log group.
  198. AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
  199. // The Amazon Resource Name(s) (ARN) of the AWS log group(s).
  200. //
  201. // Type: string[]
  202. // Required: No
  203. // Stability: stable
  204. // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*'
  205. // Note: See the [log group ARN format
  206. // documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-
  207. // access-control-overview-cwl.html#CWL_ARN_Format).
  208. AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
  209. // The name(s) of the AWS log stream(s) an application is writing to.
  210. //
  211. // Type: string[]
  212. // Required: No
  213. // Stability: stable
  214. // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b'
  215. AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
  216. // The ARN(s) of the AWS log stream(s).
  217. //
  218. // Type: string[]
  219. // Required: No
  220. // Stability: stable
  221. // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-
  222. // stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b'
  223. // Note: See the [log stream ARN format
  224. // documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-
  225. // access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain
  226. // several log streams, so these ARNs necessarily identify both a log group and a
  227. // log stream.
  228. AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
  229. )
  230. // A container instance.
  231. const (
  232. // Container name used by container runtime.
  233. //
  234. // Type: string
  235. // Required: No
  236. // Stability: stable
  237. // Examples: 'opentelemetry-autoconf'
  238. ContainerNameKey = attribute.Key("container.name")
  239. // Container ID. Usually a UUID, as for example used to [identify Docker
  240. // containers](https://docs.docker.com/engine/reference/run/#container-
  241. // identification). The UUID might be abbreviated.
  242. //
  243. // Type: string
  244. // Required: No
  245. // Stability: stable
  246. // Examples: 'a3bf90e006b2'
  247. ContainerIDKey = attribute.Key("container.id")
  248. // The container runtime managing this container.
  249. //
  250. // Type: string
  251. // Required: No
  252. // Stability: stable
  253. // Examples: 'docker', 'containerd', 'rkt'
  254. ContainerRuntimeKey = attribute.Key("container.runtime")
  255. // Name of the image the container was built on.
  256. //
  257. // Type: string
  258. // Required: No
  259. // Stability: stable
  260. // Examples: 'gcr.io/opentelemetry/operator'
  261. ContainerImageNameKey = attribute.Key("container.image.name")
  262. // Container image tag.
  263. //
  264. // Type: string
  265. // Required: No
  266. // Stability: stable
  267. // Examples: '0.1'
  268. ContainerImageTagKey = attribute.Key("container.image.tag")
  269. )
  270. // The software deployment.
  271. const (
  272. // Name of the [deployment
  273. // environment](https://en.wikipedia.org/wiki/Deployment_environment) (aka
  274. // deployment tier).
  275. //
  276. // Type: string
  277. // Required: No
  278. // Stability: stable
  279. // Examples: 'staging', 'production'
  280. DeploymentEnvironmentKey = attribute.Key("deployment.environment")
  281. )
  282. // The device on which the process represented by this resource is running.
  283. const (
  284. // A unique identifier representing the device
  285. //
  286. // Type: string
  287. // Required: No
  288. // Stability: stable
  289. // Examples: '2ab2916d-a51f-4ac8-80ee-45ac31a28092'
  290. // Note: The device identifier MUST only be defined using the values outlined
  291. // below. This value is not an advertising identifier and MUST NOT be used as
  292. // such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor id
  293. // entifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-iden
  294. // tifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the
  295. // Firebase Installation ID or a globally unique UUID which is persisted across
  296. // sessions in your application. More information can be found
  297. // [here](https://developer.android.com/training/articles/user-data-ids) on best
  298. // practices and exact implementation details. Caution should be taken when
  299. // storing personal data or anything which can identify a user. GDPR and data
  300. // protection laws may apply, ensure you do your own due diligence.
  301. DeviceIDKey = attribute.Key("device.id")
  302. // The model identifier for the device
  303. //
  304. // Type: string
  305. // Required: No
  306. // Stability: stable
  307. // Examples: 'iPhone3,4', 'SM-G920F'
  308. // Note: It's recommended this value represents a machine readable version of the
  309. // model identifier rather than the market or consumer-friendly name of the
  310. // device.
  311. DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
  312. // The marketing name for the device model
  313. //
  314. // Type: string
  315. // Required: No
  316. // Stability: stable
  317. // Examples: 'iPhone 6s Plus', 'Samsung Galaxy S6'
  318. // Note: It's recommended this value represents a human readable version of the
  319. // device model rather than a machine readable alternative.
  320. DeviceModelNameKey = attribute.Key("device.model.name")
  321. // The name of the device manufacturer
  322. //
  323. // Type: string
  324. // Required: No
  325. // Stability: stable
  326. // Examples: 'Apple', 'Samsung'
  327. // Note: The Android OS provides this field via
  328. // [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER).
  329. // iOS apps SHOULD hardcode the value `Apple`.
  330. DeviceManufacturerKey = attribute.Key("device.manufacturer")
  331. )
  332. // A serverless instance.
  333. const (
  334. // The name of the single function that this runtime instance executes.
  335. //
  336. // Type: string
  337. // Required: Always
  338. // Stability: stable
  339. // Examples: 'my-function'
  340. // Note: This is the name of the function as configured/deployed on the FaaS
  341. // platform and is usually different from the name of the callback function (which
  342. // may be stored in the
  343. // [`code.namespace`/`code.function`](../../trace/semantic_conventions/span-
  344. // general.md#source-code-attributes) span attributes).
  345. FaaSNameKey = attribute.Key("faas.name")
  346. // The unique ID of the single function that this runtime instance executes.
  347. //
  348. // Type: string
  349. // Required: No
  350. // Stability: stable
  351. // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function'
  352. // Note: Depending on the cloud provider, use:
  353. // * **AWS Lambda:** The function
  354. // [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-
  355. // namespaces.html).
  356. // Take care not to use the "invoked ARN" directly but replace any
  357. // [alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-
  358. // aliases.html) with the resolved function version, as the same runtime instance
  359. // may be invokable with multiple
  360. // different aliases.
  361. // * **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-
  362. // resource-names)
  363. // * **Azure:** The [Fully Qualified Resource ID](https://docs.microsoft.com/en-
  364. // us/rest/api/resources/resources/get-by-id).
  365. // On some providers, it may not be possible to determine the full ID at startup,
  366. // which is why this field cannot be made required. For example, on AWS the
  367. // account ID
  368. // part of the ARN is not available without calling another AWS API
  369. // which may be deemed too slow for a short-running lambda function.
  370. // As an alternative, consider setting `faas.id` as a span attribute instead.
  371. FaaSIDKey = attribute.Key("faas.id")
  372. // The immutable version of the function being executed.
  373. //
  374. // Type: string
  375. // Required: No
  376. // Stability: stable
  377. // Examples: '26', 'pinkfroid-00002'
  378. // Note: Depending on the cloud provider and platform, use:
  379. // * **AWS Lambda:** The [function
  380. // version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-
  381. // versions.html)
  382. // (an integer represented as a decimal string).
  383. // * **Google Cloud Run:** The
  384. // [revision](https://cloud.google.com/run/docs/managing/revisions)
  385. // (i.e., the function name plus the revision suffix).
  386. // * **Google Cloud Functions:** The value of the
  387. // [`K_REVISION` environment
  388. // variable](https://cloud.google.com/functions/docs/env-
  389. // var#runtime_environment_variables_set_automatically).
  390. // * **Azure Functions:** Not applicable. Do not set this attribute.
  391. FaaSVersionKey = attribute.Key("faas.version")
  392. // The execution environment ID as a string, that will be potentially reused for
  393. // other invocations to the same function/function version.
  394. //
  395. // Type: string
  396. // Required: No
  397. // Stability: stable
  398. // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de'
  399. // Note: * **AWS Lambda:** Use the (full) log stream name.
  400. FaaSInstanceKey = attribute.Key("faas.instance")
  401. // The amount of memory available to the serverless function in MiB.
  402. //
  403. // Type: int
  404. // Required: No
  405. // Stability: stable
  406. // Examples: 128
  407. // Note: It's recommended to set this attribute since e.g. too little memory can
  408. // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
  409. // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
  410. // information.
  411. FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
  412. )
  413. // A host is defined as a general computing instance.
  414. const (
  415. // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud
  416. // provider.
  417. //
  418. // Type: string
  419. // Required: No
  420. // Stability: stable
  421. // Examples: 'opentelemetry-test'
  422. HostIDKey = attribute.Key("host.id")
  423. // Name of the host. On Unix systems, it may contain what the hostname command
  424. // returns, or the fully qualified hostname, or another name specified by the
  425. // user.
  426. //
  427. // Type: string
  428. // Required: No
  429. // Stability: stable
  430. // Examples: 'opentelemetry-test'
  431. HostNameKey = attribute.Key("host.name")
  432. // Type of host. For Cloud, this must be the machine type.
  433. //
  434. // Type: string
  435. // Required: No
  436. // Stability: stable
  437. // Examples: 'n1-standard-1'
  438. HostTypeKey = attribute.Key("host.type")
  439. // The CPU architecture the host system is running on.
  440. //
  441. // Type: Enum
  442. // Required: No
  443. // Stability: stable
  444. HostArchKey = attribute.Key("host.arch")
  445. // Name of the VM image or OS install the host was instantiated from.
  446. //
  447. // Type: string
  448. // Required: No
  449. // Stability: stable
  450. // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905'
  451. HostImageNameKey = attribute.Key("host.image.name")
  452. // VM image ID. For Cloud, this value is from the provider.
  453. //
  454. // Type: string
  455. // Required: No
  456. // Stability: stable
  457. // Examples: 'ami-07b06b442921831e5'
  458. HostImageIDKey = attribute.Key("host.image.id")
  459. // The version string of the VM image as defined in [Version
  460. // Attributes](README.md#version-attributes).
  461. //
  462. // Type: string
  463. // Required: No
  464. // Stability: stable
  465. // Examples: '0.1'
  466. HostImageVersionKey = attribute.Key("host.image.version")
  467. )
  468. var (
  469. // AMD64
  470. HostArchAMD64 = HostArchKey.String("amd64")
  471. // ARM32
  472. HostArchARM32 = HostArchKey.String("arm32")
  473. // ARM64
  474. HostArchARM64 = HostArchKey.String("arm64")
  475. // Itanium
  476. HostArchIA64 = HostArchKey.String("ia64")
  477. // 32-bit PowerPC
  478. HostArchPPC32 = HostArchKey.String("ppc32")
  479. // 64-bit PowerPC
  480. HostArchPPC64 = HostArchKey.String("ppc64")
  481. // IBM z/Architecture
  482. HostArchS390x = HostArchKey.String("s390x")
  483. // 32-bit x86
  484. HostArchX86 = HostArchKey.String("x86")
  485. )
  486. // A Kubernetes Cluster.
  487. const (
  488. // The name of the cluster.
  489. //
  490. // Type: string
  491. // Required: No
  492. // Stability: stable
  493. // Examples: 'opentelemetry-cluster'
  494. K8SClusterNameKey = attribute.Key("k8s.cluster.name")
  495. )
  496. // A Kubernetes Node object.
  497. const (
  498. // The name of the Node.
  499. //
  500. // Type: string
  501. // Required: No
  502. // Stability: stable
  503. // Examples: 'node-1'
  504. K8SNodeNameKey = attribute.Key("k8s.node.name")
  505. // The UID of the Node.
  506. //
  507. // Type: string
  508. // Required: No
  509. // Stability: stable
  510. // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2'
  511. K8SNodeUIDKey = attribute.Key("k8s.node.uid")
  512. )
  513. // A Kubernetes Namespace.
  514. const (
  515. // The name of the namespace that the pod is running in.
  516. //
  517. // Type: string
  518. // Required: No
  519. // Stability: stable
  520. // Examples: 'default'
  521. K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
  522. )
  523. // A Kubernetes Pod object.
  524. const (
  525. // The UID of the Pod.
  526. //
  527. // Type: string
  528. // Required: No
  529. // Stability: stable
  530. // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
  531. K8SPodUIDKey = attribute.Key("k8s.pod.uid")
  532. // The name of the Pod.
  533. //
  534. // Type: string
  535. // Required: No
  536. // Stability: stable
  537. // Examples: 'opentelemetry-pod-autoconf'
  538. K8SPodNameKey = attribute.Key("k8s.pod.name")
  539. )
  540. // A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates).
  541. const (
  542. // The name of the Container from Pod specification, must be unique within a Pod.
  543. // Container runtime usually uses different globally unique name
  544. // (`container.name`).
  545. //
  546. // Type: string
  547. // Required: No
  548. // Stability: stable
  549. // Examples: 'redis'
  550. K8SContainerNameKey = attribute.Key("k8s.container.name")
  551. // Number of times the container was restarted. This attribute can be used to
  552. // identify a particular container (running or stopped) within a container spec.
  553. //
  554. // Type: int
  555. // Required: No
  556. // Stability: stable
  557. // Examples: 0, 2
  558. K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
  559. )
  560. // A Kubernetes ReplicaSet object.
  561. const (
  562. // The UID of the ReplicaSet.
  563. //
  564. // Type: string
  565. // Required: No
  566. // Stability: stable
  567. // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
  568. K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
  569. // The name of the ReplicaSet.
  570. //
  571. // Type: string
  572. // Required: No
  573. // Stability: stable
  574. // Examples: 'opentelemetry'
  575. K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
  576. )
  577. // A Kubernetes Deployment object.
  578. const (
  579. // The UID of the Deployment.
  580. //
  581. // Type: string
  582. // Required: No
  583. // Stability: stable
  584. // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
  585. K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
  586. // The name of the Deployment.
  587. //
  588. // Type: string
  589. // Required: No
  590. // Stability: stable
  591. // Examples: 'opentelemetry'
  592. K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
  593. )
  594. // A Kubernetes StatefulSet object.
  595. const (
  596. // The UID of the StatefulSet.
  597. //
  598. // Type: string
  599. // Required: No
  600. // Stability: stable
  601. // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
  602. K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
  603. // The name of the StatefulSet.
  604. //
  605. // Type: string
  606. // Required: No
  607. // Stability: stable
  608. // Examples: 'opentelemetry'
  609. K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
  610. )
  611. // A Kubernetes DaemonSet object.
  612. const (
  613. // The UID of the DaemonSet.
  614. //
  615. // Type: string
  616. // Required: No
  617. // Stability: stable
  618. // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
  619. K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
  620. // The name of the DaemonSet.
  621. //
  622. // Type: string
  623. // Required: No
  624. // Stability: stable
  625. // Examples: 'opentelemetry'
  626. K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
  627. )
  628. // A Kubernetes Job object.
  629. const (
  630. // The UID of the Job.
  631. //
  632. // Type: string
  633. // Required: No
  634. // Stability: stable
  635. // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
  636. K8SJobUIDKey = attribute.Key("k8s.job.uid")
  637. // The name of the Job.
  638. //
  639. // Type: string
  640. // Required: No
  641. // Stability: stable
  642. // Examples: 'opentelemetry'
  643. K8SJobNameKey = attribute.Key("k8s.job.name")
  644. )
  645. // A Kubernetes CronJob object.
  646. const (
  647. // The UID of the CronJob.
  648. //
  649. // Type: string
  650. // Required: No
  651. // Stability: stable
  652. // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
  653. K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
  654. // The name of the CronJob.
  655. //
  656. // Type: string
  657. // Required: No
  658. // Stability: stable
  659. // Examples: 'opentelemetry'
  660. K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
  661. )
  662. // The operating system (OS) on which the process represented by this resource is running.
  663. const (
  664. // The operating system type.
  665. //
  666. // Type: Enum
  667. // Required: Always
  668. // Stability: stable
  669. OSTypeKey = attribute.Key("os.type")
  670. // Human readable (not intended to be parsed) OS version information, like e.g.
  671. // reported by `ver` or `lsb_release -a` commands.
  672. //
  673. // Type: string
  674. // Required: No
  675. // Stability: stable
  676. // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS'
  677. OSDescriptionKey = attribute.Key("os.description")
  678. // Human readable operating system name.
  679. //
  680. // Type: string
  681. // Required: No
  682. // Stability: stable
  683. // Examples: 'iOS', 'Android', 'Ubuntu'
  684. OSNameKey = attribute.Key("os.name")
  685. // The version string of the operating system as defined in [Version
  686. // Attributes](../../resource/semantic_conventions/README.md#version-attributes).
  687. //
  688. // Type: string
  689. // Required: No
  690. // Stability: stable
  691. // Examples: '14.2.1', '18.04.1'
  692. OSVersionKey = attribute.Key("os.version")
  693. )
  694. var (
  695. // Microsoft Windows
  696. OSTypeWindows = OSTypeKey.String("windows")
  697. // Linux
  698. OSTypeLinux = OSTypeKey.String("linux")
  699. // Apple Darwin
  700. OSTypeDarwin = OSTypeKey.String("darwin")
  701. // FreeBSD
  702. OSTypeFreeBSD = OSTypeKey.String("freebsd")
  703. // NetBSD
  704. OSTypeNetBSD = OSTypeKey.String("netbsd")
  705. // OpenBSD
  706. OSTypeOpenBSD = OSTypeKey.String("openbsd")
  707. // DragonFly BSD
  708. OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
  709. // HP-UX (Hewlett Packard Unix)
  710. OSTypeHPUX = OSTypeKey.String("hpux")
  711. // AIX (Advanced Interactive eXecutive)
  712. OSTypeAIX = OSTypeKey.String("aix")
  713. // Oracle Solaris
  714. OSTypeSolaris = OSTypeKey.String("solaris")
  715. // IBM z/OS
  716. OSTypeZOS = OSTypeKey.String("z_os")
  717. )
  718. // An operating system process.
  719. const (
  720. // Process identifier (PID).
  721. //
  722. // Type: int
  723. // Required: No
  724. // Stability: stable
  725. // Examples: 1234
  726. ProcessPIDKey = attribute.Key("process.pid")
  727. // The name of the process executable. On Linux based systems, can be set to the
  728. // `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of
  729. // `GetProcessImageFileNameW`.
  730. //
  731. // Type: string
  732. // Required: See below
  733. // Stability: stable
  734. // Examples: 'otelcol'
  735. ProcessExecutableNameKey = attribute.Key("process.executable.name")
  736. // The full path to the process executable. On Linux based systems, can be set to
  737. // the target of `proc/[pid]/exe`. On Windows, can be set to the result of
  738. // `GetProcessImageFileNameW`.
  739. //
  740. // Type: string
  741. // Required: See below
  742. // Stability: stable
  743. // Examples: '/usr/bin/cmd/otelcol'
  744. ProcessExecutablePathKey = attribute.Key("process.executable.path")
  745. // The command used to launch the process (i.e. the command name). On Linux based
  746. // systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows,
  747. // can be set to the first parameter extracted from `GetCommandLineW`.
  748. //
  749. // Type: string
  750. // Required: See below
  751. // Stability: stable
  752. // Examples: 'cmd/otelcol'
  753. ProcessCommandKey = attribute.Key("process.command")
  754. // The full command used to launch the process as a single string representing the
  755. // full command. On Windows, can be set to the result of `GetCommandLineW`. Do not
  756. // set this if you have to assemble it just for monitoring; use
  757. // `process.command_args` instead.
  758. //
  759. // Type: string
  760. // Required: See below
  761. // Stability: stable
  762. // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"'
  763. ProcessCommandLineKey = attribute.Key("process.command_line")
  764. // All the command arguments (including the command/executable itself) as received
  765. // by the process. On Linux-based systems (and some other Unixoid systems
  766. // supporting procfs), can be set according to the list of null-delimited strings
  767. // extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be
  768. // the full argv vector passed to `main`.
  769. //
  770. // Type: string[]
  771. // Required: See below
  772. // Stability: stable
  773. // Examples: 'cmd/otecol', '--config=config.yaml'
  774. ProcessCommandArgsKey = attribute.Key("process.command_args")
  775. // The username of the user that owns the process.
  776. //
  777. // Type: string
  778. // Required: No
  779. // Stability: stable
  780. // Examples: 'root'
  781. ProcessOwnerKey = attribute.Key("process.owner")
  782. )
  783. // The single (language) runtime instance which is monitored.
  784. const (
  785. // The name of the runtime of this process. For compiled native binaries, this
  786. // SHOULD be the name of the compiler.
  787. //
  788. // Type: string
  789. // Required: No
  790. // Stability: stable
  791. // Examples: 'OpenJDK Runtime Environment'
  792. ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
  793. // The version of the runtime of this process, as returned by the runtime without
  794. // modification.
  795. //
  796. // Type: string
  797. // Required: No
  798. // Stability: stable
  799. // Examples: '14.0.2'
  800. ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
  801. // An additional description about the runtime of the process, for example a
  802. // specific vendor customization of the runtime environment.
  803. //
  804. // Type: string
  805. // Required: No
  806. // Stability: stable
  807. // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0'
  808. ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
  809. )
  810. // A service instance.
  811. const (
  812. // Logical name of the service.
  813. //
  814. // Type: string
  815. // Required: Always
  816. // Stability: stable
  817. // Examples: 'shoppingcart'
  818. // Note: MUST be the same for all instances of horizontally scaled services. If
  819. // the value was not specified, SDKs MUST fallback to `unknown_service:`
  820. // concatenated with [`process.executable.name`](process.md#process), e.g.
  821. // `unknown_service:bash`. If `process.executable.name` is not available, the
  822. // value MUST be set to `unknown_service`.
  823. ServiceNameKey = attribute.Key("service.name")
  824. // A namespace for `service.name`.
  825. //
  826. // Type: string
  827. // Required: No
  828. // Stability: stable
  829. // Examples: 'Shop'
  830. // Note: A string value having a meaning that helps to distinguish a group of
  831. // services, for example the team name that owns a group of services.
  832. // `service.name` is expected to be unique within the same namespace. If
  833. // `service.namespace` is not specified in the Resource then `service.name` is
  834. // expected to be unique for all services that have no explicit namespace defined
  835. // (so the empty/unspecified namespace is simply one more valid namespace). Zero-
  836. // length namespace string is assumed equal to unspecified namespace.
  837. ServiceNamespaceKey = attribute.Key("service.namespace")
  838. // The string ID of the service instance.
  839. //
  840. // Type: string
  841. // Required: No
  842. // Stability: stable
  843. // Examples: '627cc493-f310-47de-96bd-71410b7dec09'
  844. // Note: MUST be unique for each instance of the same
  845. // `service.namespace,service.name` pair (in other words
  846. // `service.namespace,service.name,service.instance.id` triplet MUST be globally
  847. // unique). The ID helps to distinguish instances of the same service that exist
  848. // at the same time (e.g. instances of a horizontally scaled service). It is
  849. // preferable for the ID to be persistent and stay the same for the lifetime of
  850. // the service instance, however it is acceptable that the ID is ephemeral and
  851. // changes during important lifetime events for the service (e.g. service
  852. // restarts). If the service has no inherent unique ID that can be used as the
  853. // value of this attribute it is recommended to generate a random Version 1 or
  854. // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use
  855. // Version 5, see RFC 4122 for more recommendations).
  856. ServiceInstanceIDKey = attribute.Key("service.instance.id")
  857. // The version string of the service API or implementation.
  858. //
  859. // Type: string
  860. // Required: No
  861. // Stability: stable
  862. // Examples: '2.0.0'
  863. ServiceVersionKey = attribute.Key("service.version")
  864. )
  865. // The telemetry SDK used to capture data recorded by the instrumentation libraries.
  866. const (
  867. // The name of the telemetry SDK as defined above.
  868. //
  869. // Type: string
  870. // Required: No
  871. // Stability: stable
  872. // Examples: 'opentelemetry'
  873. TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
  874. // The language of the telemetry SDK.
  875. //
  876. // Type: Enum
  877. // Required: No
  878. // Stability: stable
  879. TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
  880. // The version string of the telemetry SDK.
  881. //
  882. // Type: string
  883. // Required: No
  884. // Stability: stable
  885. // Examples: '1.2.3'
  886. TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
  887. // The version string of the auto instrumentation agent, if used.
  888. //
  889. // Type: string
  890. // Required: No
  891. // Stability: stable
  892. // Examples: '1.2.3'
  893. TelemetryAutoVersionKey = attribute.Key("telemetry.auto.version")
  894. )
  895. var (
  896. // cpp
  897. TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
  898. // dotnet
  899. TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
  900. // erlang
  901. TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
  902. // go
  903. TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
  904. // java
  905. TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
  906. // nodejs
  907. TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
  908. // php
  909. TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
  910. // python
  911. TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
  912. // ruby
  913. TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
  914. // webjs
  915. TelemetrySDKLanguageWebjs = TelemetrySDKLanguageKey.String("webjs")
  916. // swift
  917. TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
  918. )
  919. // Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime.
  920. const (
  921. // The name of the web engine.
  922. //
  923. // Type: string
  924. // Required: Always
  925. // Stability: stable
  926. // Examples: 'WildFly'
  927. WebEngineNameKey = attribute.Key("webengine.name")
  928. // The version of the web engine.
  929. //
  930. // Type: string
  931. // Required: No
  932. // Stability: stable
  933. // Examples: '21.0.0'
  934. WebEngineVersionKey = attribute.Key("webengine.version")
  935. // Additional description of the web engine (e.g. detailed version and edition
  936. // information).
  937. //
  938. // Type: string
  939. // Required: No
  940. // Stability: stable
  941. // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final'
  942. WebEngineDescriptionKey = attribute.Key("webengine.description")
  943. )