@uptrace/node
Advanced tools
Comparing version 0.20.0 to 0.25.0
@@ -5,4 +5,5 @@ "use strict"; | ||
var core_1 = require("@opentelemetry/core"); | ||
var tracing_1 = require("@opentelemetry/tracing"); | ||
var sdk_trace_base_1 = require("@opentelemetry/sdk-trace-base"); | ||
var sdk_node_1 = require("@opentelemetry/sdk-node"); | ||
var exporter_collector_1 = require("@opentelemetry/exporter-collector"); | ||
var core_2 = require("@uptrace/core"); | ||
@@ -52,11 +53,8 @@ var _CLIENT = core_2.createClient(core_2.parseDSN('https://TOKEN@api.uptrace.dev/PROJECT_ID')); | ||
_CLIENT = core_2.createClient(dsn); | ||
if (!cfg.beforeSpanSend) { | ||
cfg.beforeSpanSend = function () { }; | ||
} | ||
var exporter = new core_2.SpanExporter({ | ||
dsn: cfg.dsn, | ||
beforeSpanSend: cfg.beforeSpanSend, | ||
var exporter = new exporter_collector_1.CollectorTraceExporter({ | ||
url: 'https://otlp.uptrace.dev/v1/traces', | ||
headers: { 'uptrace-dsn': cfg.dsn }, | ||
}); | ||
// TODO: spanProcessor is deprecated | ||
cfg.spanProcessor = new tracing_1.BatchSpanProcessor(exporter, { | ||
cfg.spanProcessor = new sdk_trace_base_1.BatchSpanProcessor(exporter, { | ||
maxExportBatchSize: 1000, | ||
@@ -63,0 +61,0 @@ maxQueueSize: 1000, |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.20.0"; | ||
export declare const VERSION = "0.25.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.20.0'; | ||
exports.VERSION = '0.25.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@uptrace/node", | ||
"version": "0.20.0", | ||
"version": "0.25.0", | ||
"description": "Uptrace JS exporter for Node.js", | ||
@@ -53,22 +53,22 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/api": "0.20.0", | ||
"@opentelemetry/node": "0.20.0", | ||
"@opentelemetry/sdk-node": "0.20.0", | ||
"@uptrace/core": "^0.20.0" | ||
"@opentelemetry/api": "1.0.2", | ||
"@opentelemetry/exporter-collector": "0.25.0", | ||
"@opentelemetry/sdk-node": "0.25.0", | ||
"@uptrace/core": "^0.25.0" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "8.2.2", | ||
"@types/node": "15.12.2", | ||
"@types/mocha": "9.0.0", | ||
"@types/node": "16.7.1", | ||
"@types/sinon": "10.0.2", | ||
"@typescript-eslint/eslint-plugin": "4.26.1", | ||
"eslint": "7.28.0", | ||
"@typescript-eslint/eslint-plugin": "4.29.3", | ||
"eslint": "7.32.0", | ||
"eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-prettier": "3.4.0", | ||
"eslint-plugin-prettier": "3.4.1", | ||
"gts": "3.1.0", | ||
"mocha": "9.0.0", | ||
"mocha": "9.1.0", | ||
"nyc": "15.1.0", | ||
"sinon": "11.1.1", | ||
"sinon": "11.1.2", | ||
"ts-mocha": "8.0.0", | ||
"typescript": "4.2.3" | ||
"typescript": "4.3.5" | ||
} | ||
} |
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
9323
107
+ Added@opentelemetry/api@1.0.2(transitive)
+ Added@opentelemetry/api-metrics@0.25.0(transitive)
+ Added@opentelemetry/context-async-hooks@0.25.0(transitive)
+ Added@opentelemetry/core@0.24.00.25.0(transitive)
+ Added@opentelemetry/exporter-collector@0.25.0(transitive)
+ Added@opentelemetry/instrumentation@0.25.0(transitive)
+ Added@opentelemetry/propagator-b3@0.25.0(transitive)
+ Added@opentelemetry/propagator-jaeger@0.25.0(transitive)
+ Added@opentelemetry/resource-detector-aws@0.24.0(transitive)
+ Added@opentelemetry/resource-detector-gcp@0.24.0(transitive)
+ Added@opentelemetry/resources@0.24.00.25.0(transitive)
+ Added@opentelemetry/sdk-metrics-base@0.25.0(transitive)
+ Added@opentelemetry/sdk-node@0.25.0(transitive)
+ Added@opentelemetry/sdk-trace-base@0.25.0(transitive)
+ Added@opentelemetry/sdk-trace-node@0.25.0(transitive)
+ Added@opentelemetry/semantic-conventions@0.24.00.25.0(transitive)
+ Added@uptrace/core@0.25.0(transitive)
- Removed@opentelemetry/node@0.20.0
- Removed@opentelemetry/api@0.20.0(transitive)
- Removed@opentelemetry/api-metrics@0.20.0(transitive)
- Removed@opentelemetry/context-async-hooks@0.20.0(transitive)
- Removed@opentelemetry/core@0.20.0(transitive)
- Removed@opentelemetry/instrumentation@0.20.0(transitive)
- Removed@opentelemetry/metrics@0.20.0(transitive)
- Removed@opentelemetry/node@0.20.0(transitive)
- Removed@opentelemetry/propagator-b3@0.20.0(transitive)
- Removed@opentelemetry/propagator-jaeger@0.20.0(transitive)
- Removed@opentelemetry/resource-detector-aws@0.20.0(transitive)
- Removed@opentelemetry/resource-detector-gcp@0.20.0(transitive)
- Removed@opentelemetry/resources@0.20.0(transitive)
- Removed@opentelemetry/sdk-node@0.20.0(transitive)
- Removed@opentelemetry/semantic-conventions@0.20.0(transitive)
- Removed@opentelemetry/tracing@0.20.0(transitive)
- Removed@uptrace/core@0.20.0(transitive)
Updated@opentelemetry/api@1.0.2
Updated@uptrace/core@^0.25.0