Support config-driven output formatting

This commit is contained in:
Rene De Ren
2026-03-12 16:13:39 +01:00
parent 31928fd124
commit 814ee3d763
6 changed files with 135 additions and 51 deletions

View File

@@ -0,0 +1,9 @@
/**
* Process formatter
* Keeps the existing process-port behaviour: emit only changed fields as an object.
*/
function format(_measurement, metadata) {
return metadata.fields;
}
module.exports = { format };