@opentelemetry/api
Advanced tools
Comparing version 0.10.3-alpha.34 to 0.10.3-alpha.35
@@ -0,1 +1,2 @@ | ||
export * from './common/Exception'; | ||
export * from './common/Logger'; | ||
@@ -2,0 +3,0 @@ export * from './common/Time'; |
@@ -29,2 +29,3 @@ "use strict"; | ||
exports.propagation = exports.metrics = exports.trace = exports.context = void 0; | ||
__exportStar(require("./common/Exception"), exports); | ||
__exportStar(require("./common/Logger"), exports); | ||
@@ -31,0 +32,0 @@ __exportStar(require("./common/Time"), exports); |
@@ -0,1 +1,2 @@ | ||
import { Exception } from '../common/Exception'; | ||
import { TimeInput } from '../common/Time'; | ||
@@ -24,4 +25,5 @@ import { Attributes } from './attributes'; | ||
isRecording(): boolean; | ||
recordException(exception: Exception, time?: TimeInput): void; | ||
} | ||
export declare const NOOP_SPAN: NoopSpan; | ||
//# sourceMappingURL=NoopSpan.d.ts.map |
@@ -67,2 +67,4 @@ "use strict"; | ||
}; | ||
// By default does nothing | ||
NoopSpan.prototype.recordException = function (exception, time) { }; | ||
return NoopSpan; | ||
@@ -69,0 +71,0 @@ }()); |
@@ -0,1 +1,2 @@ | ||
import { Exception } from '../common/Exception'; | ||
import { Attributes } from './attributes'; | ||
@@ -89,3 +90,10 @@ import { SpanContext } from './span_context'; | ||
isRecording(): boolean; | ||
/** | ||
* Sets exception as a span event | ||
* @param exception the exception the only accepted values are string or Error | ||
* @param [time] the time to set as Span's event time. If not provided, | ||
* use the current time. | ||
*/ | ||
recordException(exception: Exception, time?: TimeInput): void; | ||
} | ||
//# sourceMappingURL=span.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.10.3-alpha.34+fb06b5b"; | ||
export declare const VERSION = "0.10.3-alpha.35+2ee9f1a"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.10.3-alpha.34+fb06b5b'; | ||
exports.VERSION = '0.10.3-alpha.35+2ee9f1a'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/api", | ||
"version": "0.10.3-alpha.34+fb06b5b", | ||
"version": "0.10.3-alpha.35+2ee9f1a", | ||
"description": "Public API for OpenTelemetry", | ||
@@ -79,3 +79,3 @@ "main": "build/src/index.js", | ||
}, | ||
"gitHead": "fb06b5bb1142286acf5b326925f3af3353aa9d90" | ||
"gitHead": "2ee9f1aaf7b61c4b4ae6b748f0a07f8fc708f07e" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the 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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
174797
153
3166