@git-stunts/git-cas 3.1.0 → 4.0.1

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.
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Abstract port for observability (metrics, logging, tracing).
3
+ * @abstract
4
+ */
5
+ export default class ObservabilityPort {
6
+ /**
7
+ * Emit a metric on the given channel.
8
+ * @param {string} _channel - Metric channel (e.g. 'chunk', 'file', 'integrity', 'error').
9
+ * @param {Object} _data - Metric payload.
10
+ */
11
+ metric(_channel, _data) {
12
+ throw new Error('Not implemented');
13
+ }
14
+
15
+ /**
16
+ * Log a message at the given level.
17
+ * @param {'debug'|'info'|'warn'|'error'} _level
18
+ * @param {string} _msg
19
+ * @param {Object} [_meta]
20
+ */
21
+ log(_level, _msg, _meta) {
22
+ throw new Error('Not implemented');
23
+ }
24
+
25
+ /**
26
+ * Start a named span for tracing.
27
+ * @param {string} _name
28
+ * @returns {{ end(meta?: Object): void }}
29
+ */
30
+ span(_name) {
31
+ throw new Error('Not implemented');
32
+ }
33
+ }