From 9e73a1bf0b884800d6c02dce9282a4c34b3b902b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serkan=20=C3=96ZAL?= Date: Wed, 13 Jul 2022 15:28:15 +0300 Subject: [PATCH] Added `instrumentModule` function definition into `index.d.ts` --- src/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/index.d.ts b/src/index.d.ts index 82023fa2..ded57883 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -40,6 +40,15 @@ declare module '@thundra/core' { */ export function tracer(): ThundraTracer; + /** + * Instruments given module if it is supported + * @param moduleName {string} name of the module to be instrumented + * @param module the module to be instrumented + * @return {boolean} {@code true} if the given has been instrumented, + * {@code false} otherwise + */ + export function instrumentModule(moduleName: string, module: any): boolean; + /** * Sets the tag * @param {string} name the tag name