@opentelemetry/api
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -23,4 +23,4 @@ import { Exception } from '../common/Exception'; | ||
isRecording(): boolean; | ||
recordException(_exception: Exception, _attributesOrStartTime?: SpanAttributes | TimeInput, _time?: TimeInput): void; | ||
recordException(_exception: Exception, _time?: TimeInput): void; | ||
} | ||
//# sourceMappingURL=NonRecordingSpan.d.ts.map |
@@ -58,3 +58,3 @@ /* | ||
// By default does nothing | ||
NonRecordingSpan.prototype.recordException = function (_exception, _attributesOrStartTime, _time) { }; | ||
NonRecordingSpan.prototype.recordException = function (_exception, _time) { }; | ||
return NonRecordingSpan; | ||
@@ -61,0 +61,0 @@ }()); |
@@ -100,11 +100,3 @@ 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.5.0"; | ||
export declare const VERSION = "1.6.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '1.5.0'; | ||
export var VERSION = '1.6.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -23,4 +23,4 @@ import { Exception } from '../common/Exception'; | ||
isRecording(): boolean; | ||
recordException(_exception: Exception, _attributesOrStartTime?: SpanAttributes | TimeInput, _time?: TimeInput): void; | ||
recordException(_exception: Exception, _time?: TimeInput): void; | ||
} | ||
//# sourceMappingURL=NonRecordingSpan.d.ts.map |
@@ -60,5 +60,5 @@ "use strict"; | ||
// By default does nothing | ||
recordException(_exception, _attributesOrStartTime, _time) { } | ||
recordException(_exception, _time) { } | ||
} | ||
exports.NonRecordingSpan = NonRecordingSpan; | ||
//# sourceMappingURL=NonRecordingSpan.js.map |
@@ -100,11 +100,3 @@ 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.5.0"; | ||
export declare const VERSION = "1.6.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '1.5.0'; | ||
exports.VERSION = '1.6.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/api", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Public API for OpenTelemetry", | ||
@@ -93,3 +93,3 @@ "main": "build/src/index.js", | ||
"sideEffects": false, | ||
"gitHead": "5fcd8cf136e2235903dde3df9ba03ced594f0e95" | ||
"gitHead": "faf939c77591f709afbc23fadbe629c9d3607ef6" | ||
} |
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
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
0
0
780443
9110