Debian Codegraph @

semconv/v1.9.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.9.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 // The name of the device manufacturer
324 //
325 // Type: string
326 // Required: No
327 // Stability: stable
328 // Examples: 'Apple', 'Samsung'
329 // Note: The Android OS provides this field via
330 // [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER).
331 // iOS apps SHOULD hardcode the value `Apple`.
332 DeviceManufacturerKey = attribute.Key("device.manufacturer")
333 )
334
335 // A serverless instance.
336 const (
337 // The name of the single function that this runtime instance executes.
338 //
339 // Type: string
340 // Required: Always
341 // Stability: stable
342 // Examples: 'my-function'
343 // Note: This is the name of the function as configured/deployed on the FaaS
344 // platform and is usually different from the name of the callback function (which
345 // may be stored in the
346 // [`code.namespace`/`code.function`](../../trace/semantic_conventions/span-
347 // general.md#source-code-attributes) span attributes).
348 FaaSNameKey = attribute.Key("faas.name")
349 // The unique ID of the single function that this runtime instance executes.
350 //
351 // Type: string
352 // Required: No
353 // Stability: stable
354 // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function'
355 // Note: Depending on the cloud provider, use:
356
357 // * **AWS Lambda:** The function
358 // [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-
359 // namespaces.html).
360 // Take care not to use the "invoked ARN" directly but replace any
361 // [alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-
362 // aliases.html) with the resolved function version, as the same runtime instance
363 // may be invokable with multiple
364 // different aliases.
365 // * **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-
366 // resource-names)
367 // * **Azure:** The [Fully Qualified Resource ID](https://docs.microsoft.com/en-
368 // us/rest/api/resources/resources/get-by-id).
369
370 // On some providers, it may not be possible to determine the full ID at startup,
371 // which is why this field cannot be made required. For example, on AWS the
372 // account ID
373 // part of the ARN is not available without calling another AWS API
374 // which may be deemed too slow for a short-running lambda function.
375 // As an alternative, consider setting `faas.id` as a span attribute instead.
376 FaaSIDKey = attribute.Key("faas.id")
377 // The immutable version of the function being executed.
378 //
379 // Type: string
380 // Required: No
381 // Stability: stable
382 // Examples: '26', 'pinkfroid-00002'
383 // Note: Depending on the cloud provider and platform, use:
384
385 // * **AWS Lambda:** The [function
386 // version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-
387 // versions.html)
388 // (an integer represented as a decimal string).
389 // * **Google Cloud Run:** The
390 // [revision](https://cloud.google.com/run/docs/managing/revisions)
391 // (i.e., the function name plus the revision suffix).
392 // * **Google Cloud Functions:** The value of the
393 // [`K_REVISION` environment
394 // variable](https://cloud.google.com/functions/docs/env-
395 // var#runtime_environment_variables_set_automatically).
396 // * **Azure Functions:** Not applicable. Do not set this attribute.
397 FaaSVersionKey = attribute.Key("faas.version")
398 // The execution environment ID as a string, that will be potentially reused for
399 // other invocations to the same function/function version.
400 //
401 // Type: string
402 // Required: No
403 // Stability: stable
404 // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de'
405 // Note: * **AWS Lambda:** Use the (full) log stream name.
406 FaaSInstanceKey = attribute.Key("faas.instance")
407 // The amount of memory available to the serverless function in MiB.
408 //
409 // Type: int
410 // Required: No
411 // Stability: stable
412 // Examples: 128
413 // Note: It's recommended to set this attribute since e.g. too little memory can
414 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
415 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
416 // information.
417 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
418 )
419
420 // A host is defined as a general computing instance.
421 const (
422 // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud
423 // provider.
424 //
425 // Type: string
426 // Required: No
427 // Stability: stable
428 // Examples: 'opentelemetry-test'
429 HostIDKey = attribute.Key("host.id")
430 // Name of the host. On Unix systems, it may contain what the hostname command
431 // returns, or the fully qualified hostname, or another name specified by the
432 // user.
433 //
434 // Type: string
435 // Required: No
436 // Stability: stable
437 // Examples: 'opentelemetry-test'
438 HostNameKey = attribute.Key("host.name")
439 // Type of host. For Cloud, this must be the machine type.
440 //
441 // Type: string
442 // Required: No
443 // Stability: stable
444 // Examples: 'n1-standard-1'
445 HostTypeKey = attribute.Key("host.type")
446 // The CPU architecture the host system is running on.
447 //
448 // Type: Enum
449 // Required: No
450 // Stability: stable
451 HostArchKey = attribute.Key("host.arch")
452 // Name of the VM image or OS install the host was instantiated from.
453 //
454 // Type: string
455 // Required: No
456 // Stability: stable
457 // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905'
458 HostImageNameKey = attribute.Key("host.image.name")
459 // VM image ID. For Cloud, this value is from the provider.
460 //
461 // Type: string
462 // Required: No
463 // Stability: stable
464 // Examples: 'ami-07b06b442921831e5'
465 HostImageIDKey = attribute.Key("host.image.id")
466 // The version string of the VM image as defined in [Version
467 // Attributes](README.md#version-attributes).
468 //
469 // Type: string
470 // Required: No
471 // Stability: stable
472 // Examples: '0.1'
473 HostImageVersionKey = attribute.Key("host.image.version")
474 )
475
476 var (
477 // AMD64
478 HostArchAMD64 = HostArchKey.String("amd64")
479 // ARM32
480 HostArchARM32 = HostArchKey.String("arm32")
481 // ARM64
482 HostArchARM64 = HostArchKey.String("arm64")
483 // Itanium
484 HostArchIA64 = HostArchKey.String("ia64")
485 // 32-bit PowerPC
486 HostArchPPC32 = HostArchKey.String("ppc32")
487 // 64-bit PowerPC
488 HostArchPPC64 = HostArchKey.String("ppc64")
489 // IBM z/Architecture
490 HostArchS390x = HostArchKey.String("s390x")
491 // 32-bit x86
492 HostArchX86 = HostArchKey.String("x86")
493 )
494
495 // A Kubernetes Cluster.
496 const (
497 // The name of the cluster.
498 //
499 // Type: string
500 // Required: No
501 // Stability: stable
502 // Examples: 'opentelemetry-cluster'
503 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
504 )
505
506 // A Kubernetes Node object.
507 const (
508 // The name of the Node.
509 //
510 // Type: string
511 // Required: No
512 // Stability: stable
513 // Examples: 'node-1'
514 K8SNodeNameKey = attribute.Key("k8s.node.name")
515 // The UID of the Node.
516 //
517 // Type: string
518 // Required: No
519 // Stability: stable
520 // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2'
521 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
522 )
523
524 // A Kubernetes Namespace.
525 const (
526 // The name of the namespace that the pod is running in.
527 //
528 // Type: string
529 // Required: No
530 // Stability: stable
531 // Examples: 'default'
532 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
533 )
534
535 // A Kubernetes Pod object.
536 const (
537 // The UID of the Pod.
538 //
539 // Type: string
540 // Required: No
541 // Stability: stable
542 // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
543 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
544 // The name of the Pod.
545 //
546 // Type: string
547 // Required: No
548 // Stability: stable
549 // Examples: 'opentelemetry-pod-autoconf'
550 K8SPodNameKey = attribute.Key("k8s.pod.name")
551 )
552
553 // A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates).
554 const (
555 // The name of the Container from Pod specification, must be unique within a Pod.
556 // Container runtime usually uses different globally unique name
557 // (`container.name`).
558 //
559 // Type: string
560 // Required: No
561 // Stability: stable
562 // Examples: 'redis'
563 K8SContainerNameKey = attribute.Key("k8s.container.name")
564 // Number of times the container was restarted. This attribute can be used to
565 // identify a particular container (running or stopped) within a container spec.
566 //
567 // Type: int
568 // Required: No
569 // Stability: stable
570 // Examples: 0, 2
571 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
572 )
573
574 // A Kubernetes ReplicaSet object.
575 const (
576 // The UID of the ReplicaSet.
577 //
578 // Type: string
579 // Required: No
580 // Stability: stable
581 // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
582 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
583 // The name of the ReplicaSet.
584 //
585 // Type: string
586 // Required: No
587 // Stability: stable
588 // Examples: 'opentelemetry'
589 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
590 )
591
592 // A Kubernetes Deployment object.
593 const (
594 // The UID of the Deployment.
595 //
596 // Type: string
597 // Required: No
598 // Stability: stable
599 // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
600 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
601 // The name of the Deployment.
602 //
603 // Type: string
604 // Required: No
605 // Stability: stable
606 // Examples: 'opentelemetry'
607 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
608 )
609
610 // A Kubernetes StatefulSet object.
611 const (
612 // The UID of the StatefulSet.
613 //
614 // Type: string
615 // Required: No
616 // Stability: stable
617 // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
618 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
619 // The name of the StatefulSet.
620 //
621 // Type: string
622 // Required: No
623 // Stability: stable
624 // Examples: 'opentelemetry'
625 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
626 )
627
628 // A Kubernetes DaemonSet object.
629 const (
630 // The UID of the DaemonSet.
631 //
632 // Type: string
633 // Required: No
634 // Stability: stable
635 // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
636 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
637 // The name of the DaemonSet.
638 //
639 // Type: string
640 // Required: No
641 // Stability: stable
642 // Examples: 'opentelemetry'
643 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
644 )
645
646 // A Kubernetes Job object.
647 const (
648 // The UID of the Job.
649 //
650 // Type: string
651 // Required: No
652 // Stability: stable
653 // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
654 K8SJobUIDKey = attribute.Key("k8s.job.uid")
655 // The name of the Job.
656 //
657 // Type: string
658 // Required: No
659 // Stability: stable
660 // Examples: 'opentelemetry'
661 K8SJobNameKey = attribute.Key("k8s.job.name")
662 )
663
664 // A Kubernetes CronJob object.
665 const (
666 // The UID of the CronJob.
667 //
668 // Type: string
669 // Required: No
670 // Stability: stable
671 // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'
672 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
673 // The name of the CronJob.
674 //
675 // Type: string
676 // Required: No
677 // Stability: stable
678 // Examples: 'opentelemetry'
679 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
680 )
681
682 // The operating system (OS) on which the process represented by this resource is running.
683 const (
684 // The operating system type.
685 //
686 // Type: Enum
687 // Required: Always
688 // Stability: stable
689 OSTypeKey = attribute.Key("os.type")
690 // Human readable (not intended to be parsed) OS version information, like e.g.
691 // reported by `ver` or `lsb_release -a` commands.
692 //
693 // Type: string
694 // Required: No
695 // Stability: stable
696 // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS'
697 OSDescriptionKey = attribute.Key("os.description")
698 // Human readable operating system name.
699 //
700 // Type: string
701 // Required: No
702 // Stability: stable
703 // Examples: 'iOS', 'Android', 'Ubuntu'
704 OSNameKey = attribute.Key("os.name")
705 // The version string of the operating system as defined in [Version
706 // Attributes](../../resource/semantic_conventions/README.md#version-attributes).
707 //
708 // Type: string
709 // Required: No
710 // Stability: stable
711 // Examples: '14.2.1', '18.04.1'
712 OSVersionKey = attribute.Key("os.version")
713 )
714
715 var (
716 // Microsoft Windows
717 OSTypeWindows = OSTypeKey.String("windows")
718 // Linux
719 OSTypeLinux = OSTypeKey.String("linux")
720 // Apple Darwin
721 OSTypeDarwin = OSTypeKey.String("darwin")
722 // FreeBSD
723 OSTypeFreeBSD = OSTypeKey.String("freebsd")
724 // NetBSD
725 OSTypeNetBSD = OSTypeKey.String("netbsd")
726 // OpenBSD
727 OSTypeOpenBSD = OSTypeKey.String("openbsd")
728 // DragonFly BSD
729 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
730 // HP-UX (Hewlett Packard Unix)
731 OSTypeHPUX = OSTypeKey.String("hpux")
732 // AIX (Advanced Interactive eXecutive)
733 OSTypeAIX = OSTypeKey.String("aix")
734 // Oracle Solaris
735 OSTypeSolaris = OSTypeKey.String("solaris")
736 // IBM z/OS
737 OSTypeZOS = OSTypeKey.String("z_os")
738 )
739
740 // An operating system process.
741 const (
742 // Process identifier (PID).
743 //
744 // Type: int
745 // Required: No
746 // Stability: stable
747 // Examples: 1234
748 ProcessPIDKey = attribute.Key("process.pid")
749 // The name of the process executable. On Linux based systems, can be set to the
750 // `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of
751 // `GetProcessImageFileNameW`.
752 //
753 // Type: string
754 // Required: See below
755 // Stability: stable
756 // Examples: 'otelcol'
757 ProcessExecutableNameKey = attribute.Key("process.executable.name")
758 // The full path to the process executable. On Linux based systems, can be set to
759 // the target of `proc/[pid]/exe`. On Windows, can be set to the result of
760 // `GetProcessImageFileNameW`.
761 //
762 // Type: string
763 // Required: See below
764 // Stability: stable
765 // Examples: '/usr/bin/cmd/otelcol'
766 ProcessExecutablePathKey = attribute.Key("process.executable.path")
767 // The command used to launch the process (i.e. the command name). On Linux based
768 // systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows,
769 // can be set to the first parameter extracted from `GetCommandLineW`.
770 //
771 // Type: string
772 // Required: See below
773 // Stability: stable
774 // Examples: 'cmd/otelcol'
775 ProcessCommandKey = attribute.Key("process.command")
776 // The full command used to launch the process as a single string representing the
777 // full command. On Windows, can be set to the result of `GetCommandLineW`. Do not
778 // set this if you have to assemble it just for monitoring; use
779 // `process.command_args` instead.
780 //
781 // Type: string
782 // Required: See below
783 // Stability: stable
784 // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"'
785 ProcessCommandLineKey = attribute.Key("process.command_line")
786 // All the command arguments (including the command/executable itself) as received
787 // by the process. On Linux-based systems (and some other Unixoid systems
788 // supporting procfs), can be set according to the list of null-delimited strings
789 // extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be
790 // the full argv vector passed to `main`.
791 //
792 // Type: string[]
793 // Required: See below
794 // Stability: stable
795 // Examples: 'cmd/otecol', '--config=config.yaml'
796 ProcessCommandArgsKey = attribute.Key("process.command_args")
797 // The username of the user that owns the process.
798 //
799 // Type: string
800 // Required: No
801 // Stability: stable
802 // Examples: 'root'
803 ProcessOwnerKey = attribute.Key("process.owner")
804 )
805
806 // The single (language) runtime instance which is monitored.
807 const (
808 // The name of the runtime of this process. For compiled native binaries, this
809 // SHOULD be the name of the compiler.
810 //
811 // Type: string
812 // Required: No
813 // Stability: stable
814 // Examples: 'OpenJDK Runtime Environment'
815 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
816 // The version of the runtime of this process, as returned by the runtime without
817 // modification.
818 //
819 // Type: string
820 // Required: No
821 // Stability: stable
822 // Examples: '14.0.2'
823 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
824 // An additional description about the runtime of the process, for example a
825 // specific vendor customization of the runtime environment.
826 //
827 // Type: string
828 // Required: No
829 // Stability: stable
830 // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0'
831 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
832 )
833
834 // A service instance.
835 const (
836 // Logical name of the service.
837 //
838 // Type: string
839 // Required: Always
840 // Stability: stable
841 // Examples: 'shoppingcart'
842 // Note: MUST be the same for all instances of horizontally scaled services. If
843 // the value was not specified, SDKs MUST fallback to `unknown_service:`
844 // concatenated with [`process.executable.name`](process.md#process), e.g.
845 // `unknown_service:bash`. If `process.executable.name` is not available, the
846 // value MUST be set to `unknown_service`.
847 ServiceNameKey = attribute.Key("service.name")
848 // A namespace for `service.name`.
849 //
850 // Type: string
851 // Required: No
852 // Stability: stable
853 // Examples: 'Shop'
854 // Note: A string value having a meaning that helps to distinguish a group of
855 // services, for example the team name that owns a group of services.
856 // `service.name` is expected to be unique within the same namespace. If
857 // `service.namespace` is not specified in the Resource then `service.name` is
858 // expected to be unique for all services that have no explicit namespace defined
859 // (so the empty/unspecified namespace is simply one more valid namespace). Zero-
860 // length namespace string is assumed equal to unspecified namespace.
861 ServiceNamespaceKey = attribute.Key("service.namespace")
862 // The string ID of the service instance.
863 //
864 // Type: string
865 // Required: No
866 // Stability: stable
867 // Examples: '627cc493-f310-47de-96bd-71410b7dec09'
868 // Note: MUST be unique for each instance of the same
869 // `service.namespace,service.name` pair (in other words
870 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
871 // unique). The ID helps to distinguish instances of the same service that exist
872 // at the same time (e.g. instances of a horizontally scaled service). It is
873 // preferable for the ID to be persistent and stay the same for the lifetime of
874 // the service instance, however it is acceptable that the ID is ephemeral and
875 // changes during important lifetime events for the service (e.g. service
876 // restarts). If the service has no inherent unique ID that can be used as the
877 // value of this attribute it is recommended to generate a random Version 1 or
878 // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use
879 // Version 5, see RFC 4122 for more recommendations).
880 ServiceInstanceIDKey = attribute.Key("service.instance.id")
881 // The version string of the service API or implementation.
882 //
883 // Type: string
884 // Required: No
885 // Stability: stable
886 // Examples: '2.0.0'
887 ServiceVersionKey = attribute.Key("service.version")
888 )
889
890 // The telemetry SDK used to capture data recorded by the instrumentation libraries.
891 const (
892 // The name of the telemetry SDK as defined above.
893 //
894 // Type: string
895 // Required: No
896 // Stability: stable
897 // Examples: 'opentelemetry'
898 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
899 // The language of the telemetry SDK.
900 //
901 // Type: Enum
902 // Required: No
903 // Stability: stable
904 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
905 // The version string of the telemetry SDK.
906 //
907 // Type: string
908 // Required: No
909 // Stability: stable
910 // Examples: '1.2.3'
911 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
912 // The version string of the auto instrumentation agent, if used.
913 //
914 // Type: string
915 // Required: No
916 // Stability: stable
917 // Examples: '1.2.3'
918 TelemetryAutoVersionKey = attribute.Key("telemetry.auto.version")
919 )
920
921 var (
922 // cpp
923 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
924 // dotnet
925 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
926 // erlang
927 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
928 // go
929 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
930 // java
931 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
932 // nodejs
933 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
934 // php
935 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
936 // python
937 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
938 // ruby
939 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
940 // webjs
941 TelemetrySDKLanguageWebjs = TelemetrySDKLanguageKey.String("webjs")
942 // swift
943 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
944 )
945
946 // Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime.
947 const (
948 // The name of the web engine.
949 //
950 // Type: string
951 // Required: Always
952 // Stability: stable
953 // Examples: 'WildFly'
954 WebEngineNameKey = attribute.Key("webengine.name")
955 // The version of the web engine.
956 //
957 // Type: string
958 // Required: No
959 // Stability: stable
960 // Examples: '21.0.0'
961 WebEngineVersionKey = attribute.Key("webengine.version")
962 // Additional description of the web engine (e.g. detailed version and edition
963 // information).
964 //
965 // Type: string
966 // Required: No
967 // Stability: stable
968 // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final'
969 WebEngineDescriptionKey = attribute.Key("webengine.description")
970 )