cat-a-logs 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cat-a-logs might be problematic. Click here for more details.
package/client/index.js
CHANGED
@@ -36,10 +36,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
36
|
}
|
37
37
|
};
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.cache = void 0;
|
40
|
+
exports.catalog = catalog;
|
39
41
|
var logger_1 = require("@aws-lambda-powertools/logger");
|
40
42
|
var ajv_1 = require("ajv");
|
41
43
|
//cache entries are structured thusly: 'Namespace + Dimensions(Alphabetically)': EMFObject
|
42
44
|
var cache = {};
|
45
|
+
exports.cache = cache;
|
43
46
|
//catalog(kilos, "kilos" , "lambda-function-metrics", "Kilograms", {'functionVersion': $LATEST, 'testDimension': derp});
|
44
47
|
function catalog(trackedVariable_1, metricName_1, metricNamespace_1) {
|
45
48
|
return __awaiter(this, arguments, void 0, function (trackedVariable, metricName, metricNamespace, metricUnitLabel, CustomerDefinedDimension, resolution, deploy) {
|
@@ -232,11 +235,6 @@ function catalog(trackedVariable_1, metricName_1, metricNamespace_1) {
|
|
232
235
|
});
|
233
236
|
});
|
234
237
|
}
|
235
|
-
export default {cache, catalog};
|
236
|
-
// exports.default = {
|
237
|
-
// "cache": cache,
|
238
|
-
// "catalog": catalog,
|
239
|
-
// };
|
240
238
|
/*Current Working logger invocation
|
241
239
|
logger.info("Your EMF compliant Structured Metrics Log",
|
242
240
|
Object.assign({
|
package/client/index.ts
CHANGED
@@ -24,9 +24,9 @@ export const lambdaHandler = async (event, context) => {
|
|
24
24
|
message: 'hello world',
|
25
25
|
}),
|
26
26
|
};
|
27
|
-
let kilos =
|
28
|
-
let pounds =
|
29
|
-
let grams =
|
27
|
+
let kilos =70;
|
28
|
+
let pounds =35;
|
29
|
+
let grams = 20;
|
30
30
|
catalog(pounds, 'poundsTest', 'lambda-junction-metrics2', 'None', {
|
31
31
|
functionVersion: '$LATEST',
|
32
32
|
testDimension: 'berp',
|