Skip to content

Commit 00a66d3

Browse files
committed
feat: Include parameter names in the AppMap index
1 parent d0f1199 commit 00a66d3

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

packages/cli/src/fingerprint/canonicalize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const algorithms = {
1010
packageDependencies: require('./canonicalize/packageDependencies'),
1111
sqlNormalized: require('./canonicalize/sqlNormalized'),
1212
sqlTables: require('./canonicalize/sqlTables'),
13+
parameters: require('./canonicalize/parameters'),
1314
};
1415
/* eslint-enable global-require */
1516

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* eslint-disable class-methods-use-this */
2+
const Unique = require('./unique');
3+
const { collectParameters } = require('../../fulltext/collectParameters');
4+
5+
class Canonicalize extends Unique {
6+
functionCall(event) {
7+
return collectParameters(event);
8+
}
9+
10+
httpServerRequest(event) {
11+
return collectParameters(event);
12+
}
13+
}
14+
15+
module.exports = (appmap) => new Canonicalize(appmap).execute();

packages/cli/src/fingerprint/fingerprinter.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ const renameFile = promisify(gracefulFs.rename);
1616
/**
1717
* CHANGELOG
1818
*
19+
* * # 1.4.0
20+
*
21+
* * Include parameter names in the index.
22+
*
1923
* * # 1.3.0
2024
*
2125
* * Include exceptions in the index.
@@ -49,7 +53,7 @@ const renameFile = promisify(gracefulFs.rename);
4953
* * Fix handling of parent assignment in normalization.
5054
* * sql can contain the analysis (action, tables, columns), and/or the normalized query string.
5155
*/
52-
export const VERSION = '1.2.0';
56+
export const VERSION = '1.4.0';
5357

5458
const MAX_APPMAP_SIZE = 50 * 1024 * 1024;
5559

0 commit comments

Comments
 (0)