Debian Codegraph @

semconv/v1.8.0/resource.go

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