@lssm/lib.observability 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lssm/lib.observability
2
2
 
3
- ## 0.0.0-canary-20251217083314
3
+ ## 0.0.0-canary-20251220002821
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,7 +9,7 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [66a5dfd]
12
- - @lssm/lib.lifecycle@0.0.0-canary-20251217083314
12
+ - @lssm/lib.lifecycle@0.0.0-canary-20251220002821
13
13
 
14
14
  ## 0.5.0
15
15
 
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -66,6 +66,9 @@ Full docs: https://contractspec.lssm.tech/docs/libraries/observability
66
66
 
67
67
 
68
68
 
69
+
70
+
71
+
69
72
 
70
73
 
71
74
 
@@ -17,4 +17,5 @@ declare class AlertManager {
17
17
  notify(signal: AnomalySignal, analysis: RootCauseAnalysis): Promise<void>;
18
18
  }
19
19
  //#endregion
20
- export { AlertManager, AlertManagerOptions };
20
+ export { AlertManager, AlertManagerOptions };
21
+ //# sourceMappingURL=alert-manager.d.mts.map
@@ -19,4 +19,5 @@ var AlertManager = class {
19
19
  };
20
20
 
21
21
  //#endregion
22
- export { AlertManager };
22
+ export { AlertManager };
23
+ //# sourceMappingURL=alert-manager.mjs.map
@@ -22,4 +22,5 @@ declare class AnomalyDetector {
22
22
  private relativeDrop;
23
23
  }
24
24
  //#endregion
25
- export { AnomalyDetector, AnomalySignal, AnomalyThresholds };
25
+ export { AnomalyDetector, AnomalySignal, AnomalyThresholds };
26
+ //# sourceMappingURL=anomaly-detector.d.mts.map
@@ -54,4 +54,5 @@ var AnomalyDetector = class {
54
54
  };
55
55
 
56
56
  //#endregion
57
- export { AnomalyDetector };
57
+ export { AnomalyDetector };
58
+ //# sourceMappingURL=anomaly-detector.mjs.map
@@ -22,4 +22,5 @@ declare class BaselineCalculator {
22
22
  private mix;
23
23
  }
24
24
  //#endregion
25
- export { BaselineCalculator, BaselineSnapshot, MetricPoint };
25
+ export { BaselineCalculator, BaselineSnapshot, MetricPoint };
26
+ //# sourceMappingURL=baseline-calculator.d.mts.map
@@ -33,4 +33,5 @@ var BaselineCalculator = class {
33
33
  };
34
34
 
35
35
  //#endregion
36
- export { BaselineCalculator };
36
+ export { BaselineCalculator };
37
+ //# sourceMappingURL=baseline-calculator.mjs.map
@@ -19,4 +19,5 @@ declare class RootCauseAnalyzer {
19
19
  analyze(signal: AnomalySignal, deployments: DeploymentEvent[]): RootCauseAnalysis;
20
20
  }
21
21
  //#endregion
22
- export { DeploymentEvent, RootCauseAnalysis, RootCauseAnalyzer };
22
+ export { DeploymentEvent, RootCauseAnalysis, RootCauseAnalyzer };
23
+ //# sourceMappingURL=root-cause-analyzer.d.mts.map
@@ -23,4 +23,5 @@ var RootCauseAnalyzer = class {
23
23
  };
24
24
 
25
25
  //#endregion
26
- export { RootCauseAnalyzer };
26
+ export { RootCauseAnalyzer };
27
+ //# sourceMappingURL=root-cause-analyzer.mjs.map
@@ -56,4 +56,5 @@ declare class IntentAggregator {
56
56
  private buildSequences;
57
57
  }
58
58
  //#endregion
59
- export { AggregatedOperationMetrics, IntentAggregator, IntentAggregatorOptions, IntentAggregatorSnapshot, OperationSequence, TelemetrySample };
59
+ export { AggregatedOperationMetrics, IntentAggregator, IntentAggregatorOptions, IntentAggregatorSnapshot, OperationSequence, TelemetrySample };
60
+ //# sourceMappingURL=aggregator.d.mts.map
@@ -92,4 +92,5 @@ function percentile(values, ratio) {
92
92
  }
93
93
 
94
94
  //#endregion
95
- export { IntentAggregator };
95
+ export { IntentAggregator };
96
+ //# sourceMappingURL=aggregator.mjs.map
@@ -28,4 +28,5 @@ declare class IntentDetector {
28
28
  detectSequentialIntents(sequences: OperationSequence[]): IntentSignal[];
29
29
  }
30
30
  //#endregion
31
- export { IntentDetector, IntentDetectorOptions, IntentSignal, IntentSignalType };
31
+ export { IntentDetector, IntentDetectorOptions, IntentSignal, IntentSignalType };
32
+ //# sourceMappingURL=detector.d.mts.map
@@ -118,4 +118,5 @@ var IntentDetector = class {
118
118
  };
119
119
 
120
120
  //#endregion
121
- export { IntentDetector };
121
+ export { IntentDetector };
122
+ //# sourceMappingURL=detector.mjs.map
@@ -148,4 +148,5 @@ const LIFECYCLE_STAGE_META = {
148
148
  };
149
149
 
150
150
  //#endregion
151
- export { LIFECYCLE_STAGE_META, LifecycleStage };
151
+ export { LIFECYCLE_STAGE_META, LifecycleStage };
152
+ //# sourceMappingURL=stages.mjs.map
@@ -4,4 +4,5 @@ import { LIFECYCLE_STAGE_META } from "../types/stages.mjs";
4
4
  const getStageLabel = (stage) => LIFECYCLE_STAGE_META[stage].name;
5
5
 
6
6
  //#endregion
7
- export { getStageLabel };
7
+ export { getStageLabel };
8
+ //# sourceMappingURL=formatters.mjs.map
@@ -16,4 +16,5 @@ declare class Logger {
16
16
  }
17
17
  declare const logger: Logger;
18
18
  //#endregion
19
- export { LogEntry, LogLevel, Logger, logger };
19
+ export { LogEntry, LogLevel, Logger, logger };
20
+ //# sourceMappingURL=index.d.mts.map
@@ -36,4 +36,5 @@ var Logger = class {
36
36
  const logger = new Logger(process.env.OTEL_SERVICE_NAME || "unknown-service");
37
37
 
38
38
  //#endregion
39
- export { Logger, logger };
39
+ export { Logger, logger };
40
+ //# sourceMappingURL=index.mjs.map
@@ -13,4 +13,5 @@ declare const standardMetrics: {
13
13
  workflowDuration: Histogram<_opentelemetry_api0.Attributes>;
14
14
  };
15
15
  //#endregion
16
- export { createCounter, createHistogram, createUpDownCounter, getMeter, standardMetrics };
16
+ export { createCounter, createHistogram, createUpDownCounter, getMeter, standardMetrics };
17
+ //# sourceMappingURL=index.d.mts.map
@@ -22,4 +22,5 @@ const standardMetrics = {
22
22
  };
23
23
 
24
24
  //#endregion
25
- export { createCounter, createHistogram, createUpDownCounter, getMeter, standardMetrics };
25
+ export { createCounter, createHistogram, createUpDownCounter, getMeter, standardMetrics };
26
+ //# sourceMappingURL=index.mjs.map
@@ -36,4 +36,5 @@ declare class EvolutionPipeline {
36
36
  private emit;
37
37
  }
38
38
  //#endregion
39
- export { EvolutionPipeline, EvolutionPipelineEvent, EvolutionPipelineOptions };
39
+ export { EvolutionPipeline, EvolutionPipelineEvent, EvolutionPipelineOptions };
40
+ //# sourceMappingURL=evolution-pipeline.d.mts.map
@@ -62,4 +62,5 @@ var EvolutionPipeline = class {
62
62
  };
63
63
 
64
64
  //#endregion
65
- export { EvolutionPipeline };
65
+ export { EvolutionPipeline };
66
+ //# sourceMappingURL=evolution-pipeline.mjs.map
@@ -40,4 +40,5 @@ declare class LifecycleKpiPipeline {
40
40
  private ensureStageCounters;
41
41
  }
42
42
  //#endregion
43
- export { LifecycleKpiPipeline, LifecycleKpiPipelineOptions, LifecyclePipelineEvent };
43
+ export { LifecycleKpiPipeline, LifecycleKpiPipelineOptions, LifecyclePipelineEvent };
44
+ //# sourceMappingURL=lifecycle-pipeline.d.mts.map
@@ -70,4 +70,5 @@ var LifecycleKpiPipeline = class {
70
70
  };
71
71
 
72
72
  //#endregion
73
- export { LifecycleKpiPipeline };
73
+ export { LifecycleKpiPipeline };
74
+ //# sourceMappingURL=lifecycle-pipeline.mjs.map
@@ -5,4 +5,5 @@ declare function getTracer(name?: string): Tracer;
5
5
  declare function traceAsync<T>(name: string, fn: (span: Span) => Promise<T>, tracerName?: string): Promise<T>;
6
6
  declare function traceSync<T>(name: string, fn: (span: Span) => T, tracerName?: string): T;
7
7
  //#endregion
8
- export { getTracer, traceAsync, traceSync };
8
+ export { getTracer, traceAsync, traceSync };
9
+ //# sourceMappingURL=index.d.mts.map
@@ -43,4 +43,5 @@ function traceSync(name, fn, tracerName) {
43
43
  }
44
44
 
45
45
  //#endregion
46
- export { getTracer, traceAsync, traceSync };
46
+ export { getTracer, traceAsync, traceSync };
47
+ //# sourceMappingURL=index.mjs.map
@@ -15,4 +15,5 @@ interface TracingMiddlewareOptions {
15
15
  }
16
16
  declare function createTracingMiddleware(options?: TracingMiddlewareOptions): (req: Request, next: () => Promise<Response>) => Promise<Response>;
17
17
  //#endregion
18
- export { TracingMiddlewareOptions, createTracingMiddleware };
18
+ export { TracingMiddlewareOptions, createTracingMiddleware };
19
+ //# sourceMappingURL=middleware.d.mts.map
@@ -76,4 +76,5 @@ function emitTelemetrySample({ req, res, span, success, durationMs, error, optio
76
76
  }
77
77
 
78
78
  //#endregion
79
- export { createTracingMiddleware };
79
+ export { createTracingMiddleware };
80
+ //# sourceMappingURL=middleware.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.observability",
3
- "version": "0.0.0-canary-20251217083314",
3
+ "version": "0.0.0-canary-20251220002821",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "scripts": {
@@ -17,15 +17,15 @@
17
17
  "test": "bun run"
18
18
  },
19
19
  "dependencies": {
20
- "@lssm/lib.lifecycle": "0.0.0-canary-20251217083314"
20
+ "@lssm/lib.lifecycle": "0.0.0-canary-20251220002821"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@opentelemetry/api": "*"
24
24
  },
25
25
  "devDependencies": {
26
- "@lssm/tool.tsdown": "0.0.0-canary-20251217083314",
27
- "@lssm/tool.typescript": "0.0.0-canary-20251217083314",
28
- "typescript": "^5.0.0"
26
+ "@lssm/tool.tsdown": "0.0.0-canary-20251220002821",
27
+ "@lssm/tool.typescript": "0.0.0-canary-20251220002821",
28
+ "typescript": "^5.9.3"
29
29
  },
30
30
  "exports": {
31
31
  ".": "./dist/index.mjs",
@@ -61,6 +61,13 @@
61
61
  "./tracing": "./dist/tracing/index.mjs",
62
62
  "./tracing/middleware": "./dist/tracing/middleware.mjs",
63
63
  "./*": "./*"
64
- }
64
+ },
65
+ "registry": "https://registry.npmjs.org/"
66
+ },
67
+ "license": "MIT",
68
+ "repository": {
69
+ "type": "git",
70
+ "url": "https://github.com/lssm-tech/contractspec.git",
71
+ "directory": "packages/libs/observability"
65
72
  }
66
73
  }