@opentelemetry/resources
Advanced tools
Comparing version 0.22.1-alpha.5 to 0.22.1-alpha.13
{ | ||
"name": "@opentelemetry/resources", | ||
"version": "0.22.1-alpha.5+7860344e", | ||
"version": "0.22.1-alpha.13+01418978", | ||
"description": "OpenTelemetry SDK resources", | ||
@@ -51,5 +51,5 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@opentelemetry/api": "^1.0.0", | ||
"@opentelemetry/api": "^1.0.1", | ||
"@types/mocha": "8.2.2", | ||
"@types/node": "14.14.43", | ||
"@types/node": "14.17.4", | ||
"@types/sinon": "9.0.11", | ||
@@ -64,12 +64,12 @@ "codecov": "3.8.2", | ||
"ts-node": "9.1.1", | ||
"typescript": "4.3.2" | ||
"typescript": "4.3.4" | ||
}, | ||
"peerDependencies": { | ||
"@opentelemetry/api": "^1.0.0" | ||
"@opentelemetry/api": "^1.0.1" | ||
}, | ||
"dependencies": { | ||
"@opentelemetry/core": "^0.22.1-alpha.5+7860344e", | ||
"@opentelemetry/semantic-conventions": "^0.22.1-alpha.5+7860344e" | ||
"@opentelemetry/core": "^0.22.1-alpha.13+01418978", | ||
"@opentelemetry/semantic-conventions": "^0.22.1-alpha.13+01418978" | ||
}, | ||
"gitHead": "7860344eca83449170bafd03fd288e1a3deebacf" | ||
"gitHead": "01418978e5cc15b5ec4d5283ec48910799fe2f06" | ||
} |
@@ -10,3 +10,3 @@ # OpenTelemetry Resources Util | ||
[This document][resource-semantic_conventions] defines standard attributes for resources. | ||
[This document][resource-semantic_conventions] defines standard attributes for resources which are accessible via [`@opentelemetry/semantic-conventions`](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-semantic-conventions). | ||
@@ -22,5 +22,7 @@ ## Installation | ||
```typescript | ||
import { Resource, SERVICE_RESOURCE } from '@opentelemetry/resources'; | ||
import { ResourceAttributes } from '@opentelemetry/semantic-conventions'; | ||
import { Resource } from '@opentelemetry/resources'; | ||
const resource = new Resource({ | ||
[SERVICE_RESOURCE.NAME]: 'api-service', | ||
[ResourceAttributes.SERVICE_NAME]: 'api-service', | ||
}); | ||
@@ -27,0 +29,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
106391
56