Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/resource-detector-alibaba-cloud

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/resource-detector-alibaba-cloud - npm Package Compare versions

Comparing version 0.28.7 to 0.28.8

16

build/src/detectors/AlibabaCloudEcsDetector.js

@@ -49,10 +49,10 @@ "use strict";

return new resources_1.Resource({
[semantic_conventions_1.SemanticResourceAttributes.CLOUD_PROVIDER]: semantic_conventions_1.CloudProviderValues.ALIBABA_CLOUD,
[semantic_conventions_1.SemanticResourceAttributes.CLOUD_PLATFORM]: semantic_conventions_1.CloudPlatformValues.ALIBABA_CLOUD_ECS,
[semantic_conventions_1.SemanticResourceAttributes.CLOUD_ACCOUNT_ID]: accountId,
[semantic_conventions_1.SemanticResourceAttributes.CLOUD_REGION]: region,
[semantic_conventions_1.SemanticResourceAttributes.CLOUD_AVAILABILITY_ZONE]: availabilityZone,
[semantic_conventions_1.SemanticResourceAttributes.HOST_ID]: instanceId,
[semantic_conventions_1.SemanticResourceAttributes.HOST_TYPE]: instanceType,
[semantic_conventions_1.SemanticResourceAttributes.HOST_NAME]: hostname,
[semantic_conventions_1.SEMRESATTRS_CLOUD_PROVIDER]: semantic_conventions_1.CLOUDPROVIDERVALUES_ALIBABA_CLOUD,
[semantic_conventions_1.SEMRESATTRS_CLOUD_PLATFORM]: semantic_conventions_1.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,
[semantic_conventions_1.SEMRESATTRS_CLOUD_ACCOUNT_ID]: accountId,
[semantic_conventions_1.SEMRESATTRS_CLOUD_REGION]: region,
[semantic_conventions_1.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE]: availabilityZone,
[semantic_conventions_1.SEMRESATTRS_HOST_ID]: instanceId,
[semantic_conventions_1.SEMRESATTRS_HOST_TYPE]: instanceType,
[semantic_conventions_1.SEMRESATTRS_HOST_NAME]: hostname,
});

@@ -59,0 +59,0 @@ }

{
"name": "@opentelemetry/resource-detector-alibaba-cloud",
"version": "0.28.7",
"version": "0.28.8",
"description": "OpenTelemetry resource detector for Alibaba Cloud",

@@ -43,3 +43,3 @@ "main": "build/src/index.js",

"@opentelemetry/api": "^1.0.0",
"@opentelemetry/contrib-test-utils": "^0.37.0",
"@opentelemetry/contrib-test-utils": "^0.38.0",
"@types/mocha": "8.2.3",

@@ -61,6 +61,6 @@ "@types/node": "18.6.5",

"@opentelemetry/resources": "^1.0.0",
"@opentelemetry/semantic-conventions": "^1.0.0"
"@opentelemetry/semantic-conventions": "^1.22.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/detectors/node/opentelemetry-resource-detector-alibaba-cloud#readme",
"gitHead": "fcea8ca0c83cb1dcd8ac736e5ea4d22ff20dc982"
"gitHead": "17a0bc1da3baa472ba9b867eee3c60730cc130fb"
}

@@ -31,4 +31,17 @@ # OpenTelemetry Resource Detector for Alibaba Cloud

- `alibabaCloudEcsDetector`: Populates `cloud` and `host` for processes running on [Alibaba Cloud ECS](https://www.alibabacloud.com/product/ecs).
### Alibaba Cloud Ecs Detector
Populates `cloud` and `host` for processes running on [Alibaba Cloud ECS](https://www.alibabacloud.com/product/ecs). More info about Alibaba Instance Identities can be found [here](https://www.alibabacloud.com/help/en/ecs/user-guide/use-instance-identities).
| Resource Attribute | Description |
|-------------------------|-----------------------------------------------------------------|
| cloud.account.id | Value of `owner-account-id` on Alibaba Cloud |
| cloud.availability_zone | Value of `zone-id` on Alibaba Cloud |
| cloud.platform | In this context, it's always `alibaba_cloud_ecs` |
| cloud.provider | In this context, it's always `alibaba_cloud` |
| cloud.region | Value of `region-id` on Alibaba Cloud |
| host.id | Value of `instance-id` on Alibaba Cloud |
| host.name | The hostname for the app, retrieve from the `hostname` endpoint |
| host.type | Value of `instance-type` on Alibaba Cloud |
[resource-semantic_conventions]: https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/resource/semantic_conventions

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc