@opentelemetry/resource-detector-azure 0.11.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/build/esm/detectors/AzureAppServiceDetector.js +9 -8
- package/build/esm/detectors/AzureAppServiceDetector.js.map +1 -1
- package/build/esm/detectors/AzureFunctionsDetector.js +12 -11
- package/build/esm/detectors/AzureFunctionsDetector.js.map +1 -1
- package/build/esm/detectors/AzureVmDetector.js +15 -15
- package/build/esm/detectors/AzureVmDetector.js.map +1 -1
- package/build/esm/semconv.d.ts +171 -0
- package/build/esm/semconv.js +191 -0
- package/build/esm/semconv.js.map +1 -0
- package/build/src/detectors/AzureAppServiceDetector.js +8 -7
- package/build/src/detectors/AzureAppServiceDetector.js.map +1 -1
- package/build/src/detectors/AzureFunctionsDetector.js +11 -10
- package/build/src/detectors/AzureFunctionsDetector.js.map +1 -1
- package/build/src/detectors/AzureVmDetector.js +15 -15
- package/build/src/detectors/AzureVmDetector.js.map +1 -1
- package/build/src/semconv.d.ts +171 -0
- package/build/src/semconv.js +194 -0
- package/build/src/semconv.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright The OpenTelemetry Authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CLOUD_PROVIDER_VALUE_AZURE = exports.CLOUD_PLATFORM_VALUE_AZURE_VM = exports.CLOUD_PLATFORM_VALUE_AZURE_FUNCTIONS = exports.CLOUD_PLATFORM_VALUE_AZURE_APP_SERVICE = exports.ATTR_SERVICE_INSTANCE_ID = exports.ATTR_PROCESS_PID = exports.ATTR_OS_VERSION = exports.ATTR_HOST_TYPE = exports.ATTR_HOST_NAME = exports.ATTR_HOST_ID = exports.ATTR_FAAS_MAX_MEMORY = exports.ATTR_FAAS_INSTANCE = exports.ATTR_DEPLOYMENT_ENVIRONMENT_NAME = exports.ATTR_CLOUD_REGION = exports.ATTR_CLOUD_PROVIDER = exports.ATTR_CLOUD_PLATFORM = void 0;
|
|
19
|
+
/*
|
|
20
|
+
* This file contains a copy of unstable semantic convention definitions
|
|
21
|
+
* used by this package.
|
|
22
|
+
* @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* The cloud platform in use.
|
|
26
|
+
*
|
|
27
|
+
* @note The prefix of the service **SHOULD** match the one specified in `cloud.provider`.
|
|
28
|
+
*
|
|
29
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
30
|
+
*/
|
|
31
|
+
exports.ATTR_CLOUD_PLATFORM = 'cloud.platform';
|
|
32
|
+
/**
|
|
33
|
+
* Name of the cloud provider.
|
|
34
|
+
*
|
|
35
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
36
|
+
*/
|
|
37
|
+
exports.ATTR_CLOUD_PROVIDER = 'cloud.provider';
|
|
38
|
+
/**
|
|
39
|
+
* 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.
|
|
40
|
+
*
|
|
41
|
+
* @example us-central1
|
|
42
|
+
* @example us-east-1
|
|
43
|
+
*
|
|
44
|
+
* @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).
|
|
45
|
+
*
|
|
46
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
47
|
+
*/
|
|
48
|
+
exports.ATTR_CLOUD_REGION = 'cloud.region';
|
|
49
|
+
/**
|
|
50
|
+
* Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier).
|
|
51
|
+
*
|
|
52
|
+
* @example staging
|
|
53
|
+
* @example production
|
|
54
|
+
*
|
|
55
|
+
* @note `deployment.environment.name` does not affect the uniqueness constraints defined through
|
|
56
|
+
* the `service.namespace`, `service.name` and `service.instance.id` resource attributes.
|
|
57
|
+
* This implies that resources carrying the following attribute combinations **MUST** be
|
|
58
|
+
* considered to be identifying the same service:
|
|
59
|
+
*
|
|
60
|
+
* - `service.name=frontend`, `deployment.environment.name=production`
|
|
61
|
+
* - `service.name=frontend`, `deployment.environment.name=staging`.
|
|
62
|
+
*
|
|
63
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
64
|
+
*/
|
|
65
|
+
exports.ATTR_DEPLOYMENT_ENVIRONMENT_NAME = 'deployment.environment.name';
|
|
66
|
+
/**
|
|
67
|
+
* The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version.
|
|
68
|
+
*
|
|
69
|
+
* @example 2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de
|
|
70
|
+
*
|
|
71
|
+
* @note - **AWS Lambda:** Use the (full) log stream name.
|
|
72
|
+
*
|
|
73
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
74
|
+
*/
|
|
75
|
+
exports.ATTR_FAAS_INSTANCE = 'faas.instance';
|
|
76
|
+
/**
|
|
77
|
+
* The amount of memory available to the serverless function converted to Bytes.
|
|
78
|
+
*
|
|
79
|
+
* @example 134217728
|
|
80
|
+
*
|
|
81
|
+
* @note It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information (which must be multiplied by 1,048,576).
|
|
82
|
+
*
|
|
83
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
84
|
+
*/
|
|
85
|
+
exports.ATTR_FAAS_MAX_MEMORY = 'faas.max_memory';
|
|
86
|
+
/**
|
|
87
|
+
* 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.
|
|
88
|
+
*
|
|
89
|
+
* @example fdbf79e8af94cb7f9e8df36789187052
|
|
90
|
+
*
|
|
91
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
92
|
+
*/
|
|
93
|
+
exports.ATTR_HOST_ID = 'host.id';
|
|
94
|
+
/**
|
|
95
|
+
* 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.
|
|
96
|
+
*
|
|
97
|
+
* @example opentelemetry-test
|
|
98
|
+
*
|
|
99
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
100
|
+
*/
|
|
101
|
+
exports.ATTR_HOST_NAME = 'host.name';
|
|
102
|
+
/**
|
|
103
|
+
* Type of host. For Cloud, this must be the machine type.
|
|
104
|
+
*
|
|
105
|
+
* @example n1-standard-1
|
|
106
|
+
*
|
|
107
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
108
|
+
*/
|
|
109
|
+
exports.ATTR_HOST_TYPE = 'host.type';
|
|
110
|
+
/**
|
|
111
|
+
* The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes).
|
|
112
|
+
*
|
|
113
|
+
* @example 14.2.1
|
|
114
|
+
* @example 18.04.1
|
|
115
|
+
*
|
|
116
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
117
|
+
*/
|
|
118
|
+
exports.ATTR_OS_VERSION = 'os.version';
|
|
119
|
+
/**
|
|
120
|
+
* Process identifier (PID).
|
|
121
|
+
*
|
|
122
|
+
* @example 1234
|
|
123
|
+
*
|
|
124
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
125
|
+
*/
|
|
126
|
+
exports.ATTR_PROCESS_PID = 'process.pid';
|
|
127
|
+
/**
|
|
128
|
+
* The string ID of the service instance.
|
|
129
|
+
*
|
|
130
|
+
* @example 627cc493-f310-47de-96bd-71410b7dec09
|
|
131
|
+
*
|
|
132
|
+
* @note **MUST** be unique for each instance of the same `service.namespace,service.name` pair (in other words
|
|
133
|
+
* `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to
|
|
134
|
+
* distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled
|
|
135
|
+
* service).
|
|
136
|
+
*
|
|
137
|
+
* Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC
|
|
138
|
+
* 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of
|
|
139
|
+
* this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and
|
|
140
|
+
* **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
|
|
141
|
+
*
|
|
142
|
+
* UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is
|
|
143
|
+
* needed. Similar to what can be seen in the man page for the
|
|
144
|
+
* [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/latest/machine-id.html) file, the underlying
|
|
145
|
+
* data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it
|
|
146
|
+
* or not via another resource attribute.
|
|
147
|
+
*
|
|
148
|
+
* For applications running behind an application server (like unicorn), we do not recommend using one identifier
|
|
149
|
+
* for all processes participating in the application. Instead, it's recommended each division (e.g. a worker
|
|
150
|
+
* thread in unicorn) to have its own instance.id.
|
|
151
|
+
*
|
|
152
|
+
* It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the
|
|
153
|
+
* service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will
|
|
154
|
+
* likely be wrong, as the Collector might not know from which container within that pod the telemetry originated.
|
|
155
|
+
* However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance
|
|
156
|
+
* for that telemetry. This is typically the case for scraping receivers, as they know the target address and
|
|
157
|
+
* port.
|
|
158
|
+
*
|
|
159
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
160
|
+
*/
|
|
161
|
+
exports.ATTR_SERVICE_INSTANCE_ID = 'service.instance.id';
|
|
162
|
+
/**
|
|
163
|
+
* Enum value "azure.app_service" for attribute {@link ATTR_CLOUD_PLATFORM}.
|
|
164
|
+
*
|
|
165
|
+
* Azure App Service
|
|
166
|
+
*
|
|
167
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
168
|
+
*/
|
|
169
|
+
exports.CLOUD_PLATFORM_VALUE_AZURE_APP_SERVICE = 'azure.app_service';
|
|
170
|
+
/**
|
|
171
|
+
* Enum value "azure.functions" for attribute {@link ATTR_CLOUD_PLATFORM}.
|
|
172
|
+
*
|
|
173
|
+
* Azure Functions
|
|
174
|
+
*
|
|
175
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
176
|
+
*/
|
|
177
|
+
exports.CLOUD_PLATFORM_VALUE_AZURE_FUNCTIONS = 'azure.functions';
|
|
178
|
+
/**
|
|
179
|
+
* Enum value "azure.vm" for attribute {@link ATTR_CLOUD_PLATFORM}.
|
|
180
|
+
*
|
|
181
|
+
* Azure Virtual Machines
|
|
182
|
+
*
|
|
183
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
184
|
+
*/
|
|
185
|
+
exports.CLOUD_PLATFORM_VALUE_AZURE_VM = 'azure.vm';
|
|
186
|
+
/**
|
|
187
|
+
* Enum value "azure" for attribute {@link ATTR_CLOUD_PROVIDER}.
|
|
188
|
+
*
|
|
189
|
+
* Microsoft Azure
|
|
190
|
+
*
|
|
191
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
192
|
+
*/
|
|
193
|
+
exports.CLOUD_PROVIDER_VALUE_AZURE = 'azure';
|
|
194
|
+
//# sourceMappingURL=semconv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semconv.js","sourceRoot":"","sources":["../../src/semconv.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;;;GAIG;AAEH;;;;;;GAMG;AACU,QAAA,mBAAmB,GAAG,gBAAyB,CAAC;AAE7D;;;;GAIG;AACU,QAAA,mBAAmB,GAAG,gBAAyB,CAAC;AAE7D;;;;;;;;;GASG;AACU,QAAA,iBAAiB,GAAG,cAAuB,CAAC;AAEzD;;;;;;;;;;;;;;;GAeG;AACU,QAAA,gCAAgC,GAC3C,6BAAsC,CAAC;AAEzC;;;;;;;;GAQG;AACU,QAAA,kBAAkB,GAAG,eAAwB,CAAC;AAE3D;;;;;;;;GAQG;AACU,QAAA,oBAAoB,GAAG,iBAA0B,CAAC;AAE/D;;;;;;GAMG;AACU,QAAA,YAAY,GAAG,SAAkB,CAAC;AAE/C;;;;;;GAMG;AACU,QAAA,cAAc,GAAG,WAAoB,CAAC;AAEnD;;;;;;GAMG;AACU,QAAA,cAAc,GAAG,WAAoB,CAAC;AAEnD;;;;;;;GAOG;AACU,QAAA,eAAe,GAAG,YAAqB,CAAC;AAErD;;;;;;GAMG;AACU,QAAA,gBAAgB,GAAG,aAAsB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACU,QAAA,wBAAwB,GAAG,qBAA8B,CAAC;AAEvE;;;;;;GAMG;AACU,QAAA,sCAAsC,GACjD,mBAA4B,CAAC;AAE/B;;;;;;GAMG;AACU,QAAA,oCAAoC,GAAG,iBAA0B,CAAC;AAE/E;;;;;;GAMG;AACU,QAAA,6BAA6B,GAAG,UAAmB,CAAC;AAEjE;;;;;;GAMG;AACU,QAAA,0BAA0B,GAAG,OAAgB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * This file contains a copy of unstable semantic convention definitions\n * used by this package.\n * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv\n */\n\n/**\n * The cloud platform in use.\n *\n * @note The prefix of the service **SHOULD** match the one specified in `cloud.provider`.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_CLOUD_PLATFORM = 'cloud.platform' as const;\n\n/**\n * Name of the cloud provider.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_CLOUD_PROVIDER = 'cloud.provider' as const;\n\n/**\n * 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.\n *\n * @example us-central1\n * @example us-east-1\n *\n * @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).\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_CLOUD_REGION = 'cloud.region' as const;\n\n/**\n * Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier).\n *\n * @example staging\n * @example production\n *\n * @note `deployment.environment.name` does not affect the uniqueness constraints defined through\n * the `service.namespace`, `service.name` and `service.instance.id` resource attributes.\n * This implies that resources carrying the following attribute combinations **MUST** be\n * considered to be identifying the same service:\n *\n * - `service.name=frontend`, `deployment.environment.name=production`\n * - `service.name=frontend`, `deployment.environment.name=staging`.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_DEPLOYMENT_ENVIRONMENT_NAME =\n 'deployment.environment.name' as const;\n\n/**\n * The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version.\n *\n * @example 2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de\n *\n * @note - **AWS Lambda:** Use the (full) log stream name.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_FAAS_INSTANCE = 'faas.instance' as const;\n\n/**\n * The amount of memory available to the serverless function converted to Bytes.\n *\n * @example 134217728\n *\n * @note It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information (which must be multiplied by 1,048,576).\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_FAAS_MAX_MEMORY = 'faas.max_memory' as const;\n\n/**\n * 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.\n *\n * @example fdbf79e8af94cb7f9e8df36789187052\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_HOST_ID = 'host.id' as const;\n\n/**\n * 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.\n *\n * @example opentelemetry-test\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_HOST_NAME = 'host.name' as const;\n\n/**\n * Type of host. For Cloud, this must be the machine type.\n *\n * @example n1-standard-1\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_HOST_TYPE = 'host.type' as const;\n\n/**\n * The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes).\n *\n * @example 14.2.1\n * @example 18.04.1\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_OS_VERSION = 'os.version' as const;\n\n/**\n * Process identifier (PID).\n *\n * @example 1234\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_PROCESS_PID = 'process.pid' as const;\n\n/**\n * The string ID of the service instance.\n *\n * @example 627cc493-f310-47de-96bd-71410b7dec09\n *\n * @note **MUST** be unique for each instance of the same `service.namespace,service.name` pair (in other words\n * `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to\n * distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled\n * service).\n *\n * Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC\n * 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of\n * this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and\n * **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.\n *\n * UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is\n * needed. Similar to what can be seen in the man page for the\n * [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/latest/machine-id.html) file, the underlying\n * data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it\n * or not via another resource attribute.\n *\n * For applications running behind an application server (like unicorn), we do not recommend using one identifier\n * for all processes participating in the application. Instead, it's recommended each division (e.g. a worker\n * thread in unicorn) to have its own instance.id.\n *\n * It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the\n * service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will\n * likely be wrong, as the Collector might not know from which container within that pod the telemetry originated.\n * However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance\n * for that telemetry. This is typically the case for scraping receivers, as they know the target address and\n * port.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_SERVICE_INSTANCE_ID = 'service.instance.id' as const;\n\n/**\n * Enum value \"azure.app_service\" for attribute {@link ATTR_CLOUD_PLATFORM}.\n *\n * Azure App Service\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const CLOUD_PLATFORM_VALUE_AZURE_APP_SERVICE =\n 'azure.app_service' as const;\n\n/**\n * Enum value \"azure.functions\" for attribute {@link ATTR_CLOUD_PLATFORM}.\n *\n * Azure Functions\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const CLOUD_PLATFORM_VALUE_AZURE_FUNCTIONS = 'azure.functions' as const;\n\n/**\n * Enum value \"azure.vm\" for attribute {@link ATTR_CLOUD_PLATFORM}.\n *\n * Azure Virtual Machines\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const CLOUD_PLATFORM_VALUE_AZURE_VM = 'azure.vm' as const;\n\n/**\n * Enum value \"azure\" for attribute {@link ATTR_CLOUD_PROVIDER}.\n *\n * Microsoft Azure\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const CLOUD_PROVIDER_VALUE_AZURE = 'azure' as const;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/resource-detector-azure",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "OpenTelemetry SDK resource detector for Azure",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"module": "build/esm/index.js",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@opentelemetry/api": "^1.0.0",
|
|
42
|
-
"@opentelemetry/contrib-test-utils": "^0.
|
|
43
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
42
|
+
"@opentelemetry/contrib-test-utils": "^0.52.1",
|
|
43
|
+
"@opentelemetry/instrumentation-http": "^0.205.0",
|
|
44
44
|
"@opentelemetry/sdk-trace-base": "^2.0.0",
|
|
45
45
|
"@types/mocha": "10.0.10",
|
|
46
46
|
"@types/node": "18.18.14",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@opentelemetry/core": "^2.0.0",
|
|
58
58
|
"@opentelemetry/resources": "^2.0.0",
|
|
59
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
59
|
+
"@opentelemetry/semantic-conventions": "^1.37.0"
|
|
60
60
|
},
|
|
61
61
|
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/resource-detector-azure#readme",
|
|
62
62
|
"sideEffects": false,
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "931c7b34f53ea625da900726b1f57c5c934b5b28"
|
|
64
64
|
}
|