@opentelemetry/api
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -23,4 +23,4 @@ import { Exception } from '../common/Exception'; | ||
isRecording(): boolean; | ||
recordException(_exception: Exception, _time?: TimeInput): void; | ||
recordException(_exception: Exception, _attributesOrStartTime?: SpanAttributes | TimeInput, _time?: TimeInput): void; | ||
} | ||
//# sourceMappingURL=NonRecordingSpan.d.ts.map |
@@ -58,3 +58,3 @@ /* | ||
// By default does nothing | ||
NonRecordingSpan.prototype.recordException = function (_exception, _time) { }; | ||
NonRecordingSpan.prototype.recordException = function (_exception, _attributesOrStartTime, _time) { }; | ||
return NonRecordingSpan; | ||
@@ -61,0 +61,0 @@ }()); |
@@ -100,3 +100,11 @@ import { Exception } from '../common/Exception'; | ||
recordException(exception: Exception, time?: TimeInput): void; | ||
/** | ||
* Sets exception as a span event | ||
* @param exception the exception the only accepted values are string or Error | ||
* @param [attributes] the attributes that will be added to the error event. | ||
* @param [time] the time to set as Span's event time. If not provided, | ||
* use the current time. | ||
*/ | ||
recordException(exception: Exception, attributes?: SpanAttributes, time?: TimeInput): void; | ||
} | ||
//# sourceMappingURL=span.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.4.1"; | ||
export declare const VERSION = "1.5.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '1.4.1'; | ||
export var VERSION = '1.5.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -23,4 +23,4 @@ import { Exception } from '../common/Exception'; | ||
isRecording(): boolean; | ||
recordException(_exception: Exception, _time?: TimeInput): void; | ||
recordException(_exception: Exception, _attributesOrStartTime?: SpanAttributes | TimeInput, _time?: TimeInput): void; | ||
} | ||
//# sourceMappingURL=NonRecordingSpan.d.ts.map |
@@ -60,5 +60,5 @@ "use strict"; | ||
// By default does nothing | ||
recordException(_exception, _time) { } | ||
recordException(_exception, _attributesOrStartTime, _time) { } | ||
} | ||
exports.NonRecordingSpan = NonRecordingSpan; | ||
//# sourceMappingURL=NonRecordingSpan.js.map |
@@ -100,3 +100,11 @@ import { Exception } from '../common/Exception'; | ||
recordException(exception: Exception, time?: TimeInput): void; | ||
/** | ||
* Sets exception as a span event | ||
* @param exception the exception the only accepted values are string or Error | ||
* @param [attributes] the attributes that will be added to the error event. | ||
* @param [time] the time to set as Span's event time. If not provided, | ||
* use the current time. | ||
*/ | ||
recordException(exception: Exception, attributes?: SpanAttributes, time?: TimeInput): void; | ||
} | ||
//# sourceMappingURL=span.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.4.1"; | ||
export declare const VERSION = "1.5.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '1.4.1'; | ||
exports.VERSION = '1.5.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/api", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Public API for OpenTelemetry", | ||
@@ -19,3 +19,3 @@ "main": "build/src/index.js", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../", | ||
"precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies", | ||
"precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies", | ||
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", | ||
@@ -27,5 +27,6 @@ "docs": "typedoc", | ||
"lint": "eslint . --ext .ts", | ||
"test:browser": "nyc karma start --single-run", | ||
"test:browser": "karma start --single-run", | ||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", | ||
"test:webworker": "nyc karma start karma.worker.js --single-run", | ||
"test:eol": "ts-mocha -p tsconfig.json 'test/**/*.test.ts'", | ||
"test:webworker": "karma start karma.worker.js --single-run", | ||
"cycle-check": "dpdm --exit-code circular:1 src/index.ts", | ||
@@ -65,25 +66,27 @@ "version": "node ../scripts/version-update.js", | ||
"devDependencies": { | ||
"@types/mocha": "10.0.0", | ||
"@types/mocha": "10.0.1", | ||
"@types/node": "18.6.5", | ||
"@types/sinon": "10.0.13", | ||
"@types/webpack": "4.41.26", | ||
"@types/sinon": "10.0.16", | ||
"@types/webpack": "4.41.33", | ||
"@types/webpack-env": "1.16.3", | ||
"babel-plugin-istanbul": "6.1.1", | ||
"codecov": "3.8.3", | ||
"dpdm": "3.10.0", | ||
"istanbul-instrumenter-loader": "3.0.1", | ||
"karma": "6.3.16", | ||
"cross-var": "1.1.0", | ||
"dpdm": "3.13.1", | ||
"karma": "6.4.2", | ||
"karma-chrome-launcher": "3.1.0", | ||
"karma-coverage-istanbul-reporter": "3.0.3", | ||
"karma-coverage": "2.2.1", | ||
"karma-mocha": "2.0.1", | ||
"karma-mocha-webworker": "1.3.0", | ||
"karma-spec-reporter": "0.0.32", | ||
"karma-spec-reporter": "0.0.36", | ||
"karma-webpack": "4.0.2", | ||
"memfs": "3.4.9", | ||
"mocha": "10.0.0", | ||
"lerna": "7.1.5", | ||
"memfs": "3.5.3", | ||
"mocha": "10.2.0", | ||
"nyc": "15.1.0", | ||
"sinon": "15.0.0", | ||
"sinon": "15.1.2", | ||
"ts-loader": "8.4.0", | ||
"ts-mocha": "10.0.0", | ||
"typescript": "4.4.4", | ||
"unionfs": "4.4.0", | ||
"unionfs": "4.5.1", | ||
"webpack": "4.46.0" | ||
@@ -93,3 +96,3 @@ }, | ||
"sideEffects": false, | ||
"gitHead": "56e6b1bb890f844b8963a146780d0b9cfa8abd0d" | ||
"gitHead": "5fcd8cf136e2235903dde3df9ba03ced594f0e95" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
782488
9126
26
1
1