Skip to content

Commit 2cdb763

Browse files
authored
Merge branch 'main' into lint-warnings-instrumentation
2 parents e8d4c4e + bec7791 commit 2cdb763

File tree

3 files changed

+106
-4
lines changed

3 files changed

+106
-4
lines changed

packages/opentelemetry-semantic-conventions/src/resource/SemanticResourceAttributes.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ export const SemanticResourceAttributes = {
2828
CLOUD_ACCOUNT_ID: 'cloud.account.id',
2929

3030
/**
31-
* The geographical region the resource is running. Refer to your provider's docs to see the available regions, for example [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations).
31+
* The geographical region the resource is running. 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/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations).
3232
*/
3333
CLOUD_REGION: 'cloud.region',
3434

3535
/**
3636
* Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running.
3737
*
38-
* Note: Availability zones are called "zones" on Google Cloud.
38+
* Note: Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
3939
*/
4040
CLOUD_AVAILABILITY_ZONE: 'cloud.availability_zone',
4141

@@ -480,6 +480,8 @@ As an alternative, consider setting `faas.id` as a span attribute instead.
480480

481481

482482
export enum CloudProviderValues {
483+
/** Alibaba Cloud. */
484+
ALIBABA_CLOUD = 'alibaba_cloud',
483485
/** Amazon Web Services. */
484486
AWS = 'aws',
485487
/** Microsoft Azure. */
@@ -492,6 +494,10 @@ export enum CloudProviderValues {
492494

493495

494496
export enum CloudPlatformValues {
497+
/** Alibaba Cloud Elastic Compute Service. */
498+
ALIBABA_CLOUD_ECS = 'alibaba_cloud_ecs',
499+
/** Alibaba Cloud Function Compute. */
500+
ALIBABA_CLOUD_FC = 'alibaba_cloud_fc',
495501
/** AWS Elastic Compute Cloud. */
496502
AWS_EC2 = 'aws_ec2',
497503
/** AWS Elastic Container Service. */

packages/opentelemetry-semantic-conventions/src/trace/SemanticAttributes.ts

+96
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,36 @@ clear whether the exception will escape.
274274
*/
275275
NET_HOST_NAME: 'net.host.name',
276276

277+
/**
278+
* The internet connection type currently being used by the host.
279+
*/
280+
NET_HOST_CONNECTION_TYPE: 'net.host.connection.type',
281+
282+
/**
283+
* This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection.
284+
*/
285+
NET_HOST_CONNECTION_SUBTYPE: 'net.host.connection.subtype',
286+
287+
/**
288+
* The name of the mobile carrier.
289+
*/
290+
NET_HOST_CARRIER_NAME: 'net.host.carrier.name',
291+
292+
/**
293+
* The mobile carrier country code.
294+
*/
295+
NET_HOST_CARRIER_MCC: 'net.host.carrier.mcc',
296+
297+
/**
298+
* The mobile carrier network code.
299+
*/
300+
NET_HOST_CARRIER_MNC: 'net.host.carrier.mnc',
301+
302+
/**
303+
* The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network.
304+
*/
305+
NET_HOST_CARRIER_ICC: 'net.host.carrier.icc',
306+
277307
/**
278308
* The [`service.name`](../../resource/semantic_conventions/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any.
279309
*/
@@ -814,6 +844,8 @@ export enum FaasDocumentOperationValues {
814844

815845

816846
export enum FaasInvokedProviderValues {
847+
/** Alibaba Cloud. */
848+
ALIBABA_CLOUD = 'alibaba_cloud',
817849
/** Amazon Web Services. */
818850
AWS = 'aws',
819851
/** Microsoft Azure. */
@@ -845,6 +877,70 @@ export enum NetTransportValues {
845877

846878

847879

880+
export enum NetHostConnectionTypeValues {
881+
/** wifi. */
882+
WIFI = 'wifi',
883+
/** wired. */
884+
WIRED = 'wired',
885+
/** cell. */
886+
CELL = 'cell',
887+
/** unavailable. */
888+
UNAVAILABLE = 'unavailable',
889+
/** unknown. */
890+
UNKNOWN = 'unknown',
891+
}
892+
893+
894+
895+
896+
export enum NetHostConnectionSubtypeValues {
897+
/** GPRS. */
898+
GPRS = 'gprs',
899+
/** EDGE. */
900+
EDGE = 'edge',
901+
/** UMTS. */
902+
UMTS = 'umts',
903+
/** CDMA. */
904+
CDMA = 'cdma',
905+
/** EVDO Rel. 0. */
906+
EVDO_0 = 'evdo_0',
907+
/** EVDO Rev. A. */
908+
EVDO_A = 'evdo_a',
909+
/** CDMA2000 1XRTT. */
910+
CDMA2000_1XRTT = 'cdma2000_1xrtt',
911+
/** HSDPA. */
912+
HSDPA = 'hsdpa',
913+
/** HSUPA. */
914+
HSUPA = 'hsupa',
915+
/** HSPA. */
916+
HSPA = 'hspa',
917+
/** IDEN. */
918+
IDEN = 'iden',
919+
/** EVDO Rev. B. */
920+
EVDO_B = 'evdo_b',
921+
/** LTE. */
922+
LTE = 'lte',
923+
/** EHRPD. */
924+
EHRPD = 'ehrpd',
925+
/** HSPAP. */
926+
HSPAP = 'hspap',
927+
/** GSM. */
928+
GSM = 'gsm',
929+
/** TD-SCDMA. */
930+
TD_SCDMA = 'td_scdma',
931+
/** IWLAN. */
932+
IWLAN = 'iwlan',
933+
/** 5G NR (New Radio). */
934+
NR = 'nr',
935+
/** 5G NRNSA (New Radio Non-Standalone). */
936+
NRNSA = 'nrnsa',
937+
/** LTE CA. */
938+
LTE_CA = 'lte_ca',
939+
}
940+
941+
942+
943+
848944
export enum HttpFlavorValues {
849945
/** HTTP 1.0. */
850946
HTTP_1_0 = '1.0',

scripts/semconv/generate.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
ROOT_DIR="${SCRIPT_DIR}/../../"
55

66
# freeze the spec version to make SpanAttributess generation reproducible
7-
SPEC_VERSION=v1.5.0
8-
GENERATOR_VERSION=0.3.1
7+
SPEC_VERSION=v1.6.1
8+
GENERATOR_VERSION=0.5.0
99

1010
cd ${SCRIPT_DIR}
1111

0 commit comments

Comments
 (0)