@opentelemetry/core
Version:
OpenTelemetry Core provides constants and utilities shared by all OpenTelemetry SDK packages.
16 lines • 525 B
text/typescript
import { ErrorHandler } from "./types.cjs";
import { Exception } from "@opentelemetry/api";
//#region src/common/global-error-handler.d.ts
/**
* Set the global error handler
* @param {ErrorHandler} handler
*/
declare function setGlobalErrorHandler(handler: ErrorHandler): void;
/**
* Return the global error handler
* @param {Exception} ex
*/
declare function globalErrorHandler(ex: Exception): void;
//#endregion
export { globalErrorHandler, setGlobalErrorHandler };
//# sourceMappingURL=global-error-handler.d.cts.map