Repository URL to install this package:
|
Version:
0.8.4 ▾
|
// (c) Copyright 2023 Supertenant Ltd. - all rights reserved.
// See LICENSE file in project root for license terms.
export const superbrain: {
_initialized: boolean;
_lib: typeof import("./binding.cjs");
_config: any;
_serverless: boolean;
_integration_circuit_breakers: string[];
init(configPath?: string, supermeterVersion?: string): boolean;
lib(): typeof import("./binding.cjs");
shutdown(timeout?: number): boolean;
isServerless(): boolean;
isCircuitBreakerEnabled(): boolean;
isIntegrationCircuitBreakerEnabled(integrationModule?: string): boolean;
enableCircuitBreaker(): boolean;
log(level?: any, msg?: string): boolean;
openSpan(taskId?: number, spanType?: any, labels?: import("./binding.cjs").SpanLabels): import("./binding.cjs").JSOpenSpanResult;
pollSpanAction(openSpanResult?: Object): cjsModule.ActionDetails;
closeSpan(spanId?: Object, spanLabels?: import("./binding.cjs").SpanLabels): boolean;
_debugHasSpan(spanId?: Object): boolean;
createTask(parentTaskId: number, taskId: number, taskType?: any): boolean;
createTaskAutoInc(parentTaskId: number, taskType?: any): number;
setLabelOnSharedData(taskId: number, key: string, value: string): boolean;
finishTask(taskId: number): boolean;
printVersion(): void;
getAction(actionId: BigInt): cjsModule.ActionDetails;
_updateConfig(): boolean;
};
export default superbrain;
import * as cjsModule from './index.cjs';