Skip to content

Annotation based tracing - @sliit-foss/babel-plugin-transform-trace #88

@Akalanka47000

Description

@Akalanka47000

Requirement :- As a developer, rather than ignoring the functions which I do not need tracing for by specifying them in the babel config, it would be much more feasible to mark only those which needs to be traced with an annotation in the source code.

Example solution :-

@timekeeper
const foo = () => {
  console.log("Inside foo");
}

Note:- decorators are not natively supported in JavaScript, a plugin such as @babel/plugin-proposal-decorators will need to be incorporated

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthacktoberfesttimekeeperIssues related to the Timekeeper project components

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions