@sentry/google-cloud-serverless
Version:
Official Sentry SDK for Google Cloud Functions
23 lines • 814 B
TypeScript
import type { EventEmitter } from 'events';
export interface GrpcFunction extends CallableFunction {
(...args: unknown[]): EventEmitter;
}
export interface GrpcFunctionObject extends GrpcFunction {
requestStream: boolean;
responseStream: boolean;
originalName: string;
}
export interface Stub {
[key: string]: GrpcFunctionObject;
}
/**
* Google Cloud Platform service requests tracking for GRPC APIs.
*/
export declare const googleCloudGrpcIntegration: (options?: {
optional?: boolean;
} | undefined) => import("@sentry/core").Integration & {
name: "GoogleCloudGrpc";
};
/** Patches the function in grpc stub to enable tracing */
export declare function fillGrpcFunction(stub: Stub, serviceIdentifier: string, methodName: string): void;
//# sourceMappingURL=google-cloud-grpc.d.ts.map