diff --git a/lib/main.js b/lib/main.js index 310bca3..0c820e3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -1,5 +1,6 @@ import { ReadFile } from '@eik/common'; import Sink from '@eik/sink'; +import MetricsClient from '@metrics/client'; import { Readable, Writable } from 'node:stream'; /** @type {Map} */ @@ -8,6 +9,12 @@ let content = new Map(); let mimetypes = new Map(); export default class SinkMemory extends Sink { + #metrics = new MetricsClient(); + + get metrics() { + return this.#metrics; + } + /** * @param {string} filePath * @param {string} contentType diff --git a/package.json b/package.json index d331ef5..7904005 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,8 @@ "homepage": "https://github.com/eik-lib/sink-memory#readme", "dependencies": { "@eik/common": "3.0.1", - "@eik/sink": "1.2.4" + "@eik/sink": "1.2.5", + "@metrics/client": "2.5.2" }, "devDependencies": { "@semantic-release/changelog": "6.0.3",