@opentelemetry/resources
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -20,4 +20,4 @@ "use strict"; | ||
const Resource_1 = require("../../Resource"); | ||
const api_1 = require("@opentelemetry/api"); | ||
const util = require("util"); | ||
const core_1 = require("@opentelemetry/core"); | ||
/** | ||
@@ -31,3 +31,3 @@ * Runs all resource detectors and returns the results merged into a single | ||
const internalConfig = Object.assign({ | ||
logger: new core_1.NoopLogger(), | ||
logger: new api_1.NoopLogger(), | ||
}, config); | ||
@@ -34,0 +34,0 @@ const resources = await Promise.all((internalConfig.detectors || []).map(async (d) => { |
@@ -19,2 +19,3 @@ "use strict"; | ||
exports.envDetector = void 0; | ||
const core_1 = require("@opentelemetry/core"); | ||
const __1 = require("../../../"); | ||
@@ -49,3 +50,3 @@ /** | ||
try { | ||
const rawAttributes = process.env.OTEL_RESOURCE_ATTRIBUTES; | ||
const rawAttributes = core_1.getEnv().OTEL_RESOURCE_ATTRIBUTES; | ||
if (!rawAttributes) { | ||
@@ -52,0 +53,0 @@ config.logger.debug('EnvDetector failed: Environment variable "OTEL_RESOURCE_ATTRIBUTES" is missing.'); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.14.0"; | ||
export declare const VERSION = "0.15.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.14.0'; | ||
exports.VERSION = '0.15.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/resources", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "OpenTelemetry SDK resources", | ||
@@ -13,2 +13,4 @@ "main": "build/src/index.js", | ||
"scripts": { | ||
"compile": "tsc --build", | ||
"clean": "tsc --build --clean", | ||
"lint": "eslint . --ext .ts", | ||
@@ -19,7 +21,3 @@ "lint:fix": "eslint . --ext .ts --fix", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", | ||
"clean": "rimraf build/*", | ||
"precompile": "tsc --version", | ||
"version:update": "node ../../scripts/version-update.js", | ||
"compile": "npm run version:update && tsc -p .", | ||
"prepare": "npm run compile" | ||
"version": "node ../../scripts/version-update.js" | ||
}, | ||
@@ -51,4 +49,4 @@ "keywords": [ | ||
"@types/mocha": "8.2.0", | ||
"@types/node": "14.14.12", | ||
"@types/sinon": "9.0.9", | ||
"@types/node": "14.14.20", | ||
"@types/sinon": "9.0.10", | ||
"codecov": "3.8.1", | ||
@@ -60,3 +58,3 @@ "gts": "2.0.2", | ||
"rimraf": "3.0.2", | ||
"sinon": "9.2.2", | ||
"sinon": "9.2.3", | ||
"ts-mocha": "8.0.0", | ||
@@ -67,6 +65,6 @@ "ts-node": "9.1.1", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.14.0", | ||
"@opentelemetry/core": "^0.14.0" | ||
"@opentelemetry/api": "^0.15.0", | ||
"@opentelemetry/core": "^0.15.0" | ||
}, | ||
"gitHead": "27a8d4530c56257c191468b073669909bf8892a1" | ||
"gitHead": "960b868f5b7686eabbf49190071b8463551e5d8f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
917
1
62082
+ Added@opentelemetry/api@0.15.0(transitive)
+ Added@opentelemetry/context-base@0.15.0(transitive)
+ Added@opentelemetry/core@0.15.0(transitive)
- Removed@opentelemetry/api@0.14.0(transitive)
- Removed@opentelemetry/context-base@0.14.0(transitive)
- Removed@opentelemetry/core@0.14.0(transitive)
Updated@opentelemetry/api@^0.15.0
Updated@opentelemetry/core@^0.15.0