resource.go 29 KB

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