|
| 1 | +/* |
| 2 | + * Copyright The OpenTelemetry Authors |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +/* |
| 18 | + * This file contains a copy of unstable semantic convention definitions |
| 19 | + * used by this package. |
| 20 | + * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv |
| 21 | + */ |
| 22 | + |
| 23 | +/** |
| 24 | + * The cloud account ID the resource is assigned to. |
| 25 | + * |
| 26 | + * @example 111111111111 |
| 27 | + * @example opentelemetry |
| 28 | + * |
| 29 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 30 | + */ |
| 31 | +export const ATTR_CLOUD_ACCOUNT_ID = 'cloud.account.id' as const; |
| 32 | + |
| 33 | +/** |
| 34 | + * Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. |
| 35 | + * |
| 36 | + * @example us-east-1c |
| 37 | + * |
| 38 | + * @note Availability zones are called "zones" on Alibaba Cloud and Google Cloud. |
| 39 | + * |
| 40 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 41 | + */ |
| 42 | +export const ATTR_CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone' as const; |
| 43 | + |
| 44 | +/** |
| 45 | + * The cloud platform in use. |
| 46 | + * |
| 47 | + * @note The prefix of the service **SHOULD** match the one specified in `cloud.provider`. |
| 48 | + * |
| 49 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 50 | + */ |
| 51 | +export const ATTR_CLOUD_PLATFORM = 'cloud.platform' as const; |
| 52 | + |
| 53 | +/** |
| 54 | + * Name of the cloud provider. |
| 55 | + * |
| 56 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 57 | + */ |
| 58 | +export const ATTR_CLOUD_PROVIDER = 'cloud.provider' as const; |
| 59 | + |
| 60 | +/** |
| 61 | + * The geographical region within a cloud provider. When associated with a resource, this attribute specifies the region where the resource operates. When calling services or APIs deployed on a cloud, this attribute identifies the region where the called destination is deployed. |
| 62 | + * |
| 63 | + * @example us-central1 |
| 64 | + * @example us-east-1 |
| 65 | + * |
| 66 | + * @note Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091). |
| 67 | + * |
| 68 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 69 | + */ |
| 70 | +export const ATTR_CLOUD_REGION = 'cloud.region' as const; |
| 71 | + |
| 72 | +/** |
| 73 | + * Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For non-containerized systems, this should be the `machine-id`. See the table below for the sources to use to determine the `machine-id` based on operating system. |
| 74 | + * |
| 75 | + * @example fdbf79e8af94cb7f9e8df36789187052 |
| 76 | + * |
| 77 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 78 | + */ |
| 79 | +export const ATTR_HOST_ID = 'host.id' as const; |
| 80 | + |
| 81 | +/** |
| 82 | + * Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. |
| 83 | + * |
| 84 | + * @example opentelemetry-test |
| 85 | + * |
| 86 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 87 | + */ |
| 88 | +export const ATTR_HOST_NAME = 'host.name' as const; |
| 89 | + |
| 90 | +/** |
| 91 | + * Type of host. For Cloud, this must be the machine type. |
| 92 | + * |
| 93 | + * @example n1-standard-1 |
| 94 | + * |
| 95 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 96 | + */ |
| 97 | +export const ATTR_HOST_TYPE = 'host.type' as const; |
| 98 | + |
| 99 | +/** |
| 100 | + * Enum value "alibaba_cloud_ecs" for attribute {@link ATTR_CLOUD_PLATFORM}. |
| 101 | + * |
| 102 | + * Alibaba Cloud Elastic Compute Service |
| 103 | + * |
| 104 | + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 105 | + */ |
| 106 | +export const CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_ECS = |
| 107 | + 'alibaba_cloud_ecs' as const; |
| 108 | + |
| 109 | +/** |
| 110 | + * Enum value "alibaba_cloud" for attribute {@link ATTR_CLOUD_PROVIDER}. |
| 111 | + * |
| 112 | + * Alibaba Cloud |
| 113 | + * |
| 114 | + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 115 | + */ |
| 116 | +export const CLOUD_PROVIDER_VALUE_ALIBABA_CLOUD = 'alibaba_cloud' as const; |
0 commit comments