@uptrace/node
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -6,2 +6,3 @@ "use strict"; | ||
var core_1 = require("@uptrace/core"); | ||
var config_1 = require("./config"); | ||
function createClient(cfg) { | ||
@@ -14,7 +15,5 @@ if (cfg === void 0) { cfg = {}; } | ||
var nodeConfig = { | ||
resource: config_1.createResource(cfg), | ||
autoDetectResources: true, | ||
}; | ||
if (cfg.resource) { | ||
nodeConfig.resource = cfg.resource; | ||
} | ||
if (cfg.sampler) { | ||
@@ -21,0 +20,0 @@ nodeConfig.sampler = cfg.sampler; |
import { Plugins } from '@opentelemetry/node'; | ||
import { Config as BaseConfig } from '@uptrace/core'; | ||
import { Config as BaseConfig, createResource } from '@uptrace/core'; | ||
export interface Config extends BaseConfig { | ||
plugins?: Plugins; | ||
} | ||
export { createResource }; | ||
//# sourceMappingURL=config.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createResource = void 0; | ||
var core_1 = require("@uptrace/core"); | ||
Object.defineProperty(exports, "createResource", { enumerable: true, get: function () { return core_1.createResource; } }); | ||
//# sourceMappingURL=config.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.3.0"; | ||
export declare const VERSION = "0.4.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.3.0'; | ||
exports.VERSION = '0.4.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@uptrace/node", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Uptrace JS exporter for Node.js", | ||
"main": "build/src/index.js", | ||
"types": "build/src/index.d.ts", | ||
"repository": "uptrace/uptrace-js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/uptrace/uptrace-js.git", | ||
"directory": "packages/uptrace-node" | ||
}, | ||
"scripts": { | ||
@@ -52,18 +56,18 @@ "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", | ||
"dependencies": { | ||
"@opentelemetry/node": "^0.13.0", | ||
"@uptrace/core": "^0.3.0" | ||
"@opentelemetry/node": "^0.16.0", | ||
"@uptrace/core": "^0.4.0" | ||
}, | ||
"devDependencies": { | ||
"@opentelemetry/sdk-node": "0.13.0", | ||
"@types/node": "14.14.10", | ||
"@typescript-eslint/eslint-plugin": "4.9.0", | ||
"eslint": "7.15.0", | ||
"@opentelemetry/sdk-node": "0.16.0", | ||
"@types/node": "14.14.27", | ||
"@typescript-eslint/eslint-plugin": "4.15.0", | ||
"eslint": "7.20.0", | ||
"eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-prettier": "3.2.0", | ||
"gts": "3.0.3", | ||
"mocha": "8.2.1", | ||
"eslint-plugin-prettier": "3.3.1", | ||
"gts": "3.1.0", | ||
"mocha": "8.3.0", | ||
"nyc": "15.1.0", | ||
"ts-mocha": "8.0.0", | ||
"typescript": "4.1.2" | ||
"typescript": "4.1.5" | ||
} | ||
} |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6432
65
2
+ Added@opentelemetry/api@0.16.00.18.1(transitive)
+ Added@opentelemetry/api-metrics@0.18.2(transitive)
+ Added@opentelemetry/context-async-hooks@0.16.0(transitive)
+ Added@opentelemetry/context-base@0.16.0(transitive)
+ Added@opentelemetry/core@0.16.00.18.2(transitive)
+ Added@opentelemetry/instrumentation@0.18.2(transitive)
+ Added@opentelemetry/node@0.16.0(transitive)
+ Added@opentelemetry/resources@0.16.00.18.2(transitive)
+ Added@opentelemetry/semantic-conventions@0.16.00.18.2(transitive)
+ Added@opentelemetry/tracing@0.16.00.18.2(transitive)
+ Added@uptrace/core@0.4.3(transitive)
+ Addedlodash.merge@4.6.2(transitive)
+ Addedshimmer@1.2.1(transitive)
- Removed@opentelemetry/api@0.13.0(transitive)
- Removed@opentelemetry/context-async-hooks@0.13.0(transitive)
- Removed@opentelemetry/context-base@0.13.0(transitive)
- Removed@opentelemetry/core@0.13.0(transitive)
- Removed@opentelemetry/node@0.13.0(transitive)
- Removed@opentelemetry/resources@0.13.0(transitive)
- Removed@opentelemetry/semantic-conventions@0.13.0(transitive)
- Removed@opentelemetry/tracing@0.13.0(transitive)
- Removed@uptrace/core@0.3.0(transitive)
Updated@opentelemetry/node@^0.16.0
Updated@uptrace/core@^0.4.0