getappmap / getappmap/appmap-node

Instrument pre-ES6 classes

Open
#183 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
13
Forks
6
Avg merge
18h 23m
Merged PRs (30d)
8

Description

Before ES6 introduced classes class-oriented programming was often implemented in ES (whether by developers or transpilers) by using prototypes directly, for example:

function Person(name) {
  this.name = name;
}

Person.prototype.sayHello = function() {
  console.log("Hello, my name is " + this.name);
}

new Person("Joe").sayHello();

This pattern is not currently instrumented by appmap-node, but can often be present in legacy code. Instrumenting this pattern will make appmap-node more useful in this scenario.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by tracing appmap-node’s existing instrumentation for class-oriented JavaScript patterns; done means constructor/prototype patterns like the example are instrumented and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, typescript
Domain
devtools, observability-sre
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.