Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Missing functions in JS appmaps #210

Open
ahtrotta opened this issue Apr 3, 2023 · 5 comments
Open

Missing functions in JS appmaps #210

ahtrotta opened this issue Apr 3, 2023 · 5 comments

Comments

@ahtrotta
Copy link

ahtrotta commented Apr 3, 2023

I mapped cli in appmap-js and got some maps, but I noticed that many of them are missing functions. For example, the map from this test case is missing pruneWithFilter and displayMessage.

Image

For context, here is my appmap.yml file (this file is in packages/cli) that was generated by the JS agent:

packages:
  - regexp: ^../
    enabled: true 
  - regexp: (^|/)node_modules/
    enabled: true 
  - regexp: ""
    enabled: true
default-package:
  enabled: false
exclude:
  - combinator: and
    name: ^\[anonymous\]$
    every-label: ^\b$
    excluded: true
    recursive: false
log:
  level: info
ordering: chronological
serialization:
  impure-printing: false
  impure-constructor-naming: false
  impure-array-inspection: false
  impure-error-inspection: false
  impure-hash-inspection: false
appmap-dir: tmp
@ahtrotta
Copy link
Author

ahtrotta commented Apr 3, 2023

Here's another example from this test. The map has locateAppMapDir, but then it doesn't capture the function call to appmapDirFromConfig from within locateApMapDir.

Image

@lachrist
Copy link
Contributor

@ahtrotta The agent works by instrumenting function declarations not function applications. As you can imagine, changing that is big leap. Are the the functions pruneWithFilter and displayMessage declared in whitelisted file?

@kgilpin
Copy link
Contributor

kgilpin commented Apr 27, 2023 via email

@lachrist
Copy link
Contributor

If it was not excluded, it is a bug.

@kgilpin
Copy link
Contributor

kgilpin commented Apr 28, 2023 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants