@progress/sitefinity-nextjs-sdk
Version:
Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.
16 lines (15 loc) • 642 B
TypeScript
import { WidgetContext } from '../../editor/widget-framework/widget-context';
export declare abstract class Tracer {
static startTrace<F>(key: string, fn: (span: any | undefined) => F): F;
static startSpan(key: string, createContext?: boolean, currentContext?: any): {
span: any | undefined;
ctx?: any;
};
static traceWidget(widgetContext: WidgetContext<any>, createContext?: boolean): {
span: any | undefined;
ctx?: any;
};
static endSpan(span?: any): null;
static withContext<T>(fn: () => T, ctx?: any): T;
static logEvent(name: string, attributes?: any, span?: any): void;
}