Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Added instrumentModule function definition into index.d.ts #364

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down