@sentry/google-cloud-serverless
Version:
Official Sentry SDK for Google Cloud Functions
12 lines (11 loc) • 582 B
TypeScript
import { CloudEventFunction, CloudEventFunctionWithCallback, WrapperOptions } from './general';
export type CloudEventFunctionWrapperOptions = WrapperOptions;
/**
* Wraps an event function handler adding it error capture and tracing capabilities.
*
* @param fn Event handler
* @param options Options
* @returns Event handler
*/
export declare function wrapCloudEventFunction(fn: CloudEventFunction | CloudEventFunctionWithCallback, wrapOptions?: Partial<CloudEventFunctionWrapperOptions>): CloudEventFunctionWithCallback;
//# sourceMappingURL=cloud_events.d.ts.map