@contractspec/lib.observability 1.62.0 → 2.0.0
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 +29 -5
- package/dist/anomaly/alert-manager.d.ts +0 -1
- package/dist/anomaly/anomaly-detector.d.ts +0 -1
- package/dist/anomaly/baseline-calculator.d.ts +0 -1
- package/dist/anomaly/root-cause-analyzer.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/intent/aggregator.d.ts +0 -1
- package/dist/intent/detector.d.ts +0 -1
- package/dist/logging/index.d.ts +0 -1
- package/dist/metrics/index.d.ts +0 -1
- package/dist/pipeline/evolution-pipeline.d.ts +0 -1
- package/dist/pipeline/lifecycle-pipeline.d.ts +0 -1
- package/dist/telemetry/posthog-baseline-reader.d.ts +1 -2
- package/dist/telemetry/posthog-telemetry.d.ts +1 -2
- package/dist/tracing/index.d.ts +0 -1
- package/dist/tracing/middleware.d.ts +0 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @contractspec/lib.observability
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- a09bafc: feat: optimize performance
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 7f3203a: fix: make workspace test runs resilient when packages have no tests
|
|
12
|
+
|
|
13
|
+
Updates package test scripts to pass cleanly when no matching test files exist:
|
|
14
|
+
- Uses `bun test --pass-with-no-tests` in Bun-based packages that currently ship without test files.
|
|
15
|
+
- Uses `jest --passWithNoTests` for the UI kit web package.
|
|
16
|
+
- Adds `.vscode-test.mjs` for `vscode-contractspec` so VS Code extension test runs have an explicit config and stop failing on missing default configuration.
|
|
17
|
+
|
|
18
|
+
This keeps `turbo run test` deterministic across the monorepo while preserving existing test execution behavior where tests are present.
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [a09bafc]
|
|
21
|
+
- Updated dependencies [f152678]
|
|
22
|
+
- Updated dependencies [7f3203a]
|
|
23
|
+
- @contractspec/lib.contracts-integrations@2.0.0
|
|
24
|
+
- @contractspec/lib.contracts-spec@2.0.0
|
|
25
|
+
- @contractspec/lib.lifecycle@2.0.0
|
|
26
|
+
|
|
3
27
|
## 1.62.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
|
@@ -22,7 +46,7 @@
|
|
|
22
46
|
### Patch Changes
|
|
23
47
|
|
|
24
48
|
- Updated dependencies [374fd71]
|
|
25
|
-
- @contractspec/lib.contracts@1.61.0
|
|
49
|
+
- @contractspec/lib.contracts-spec@1.61.0
|
|
26
50
|
- @contractspec/lib.lifecycle@1.61.0
|
|
27
51
|
|
|
28
52
|
## 1.60.0
|
|
@@ -34,7 +58,7 @@
|
|
|
34
58
|
### Patch Changes
|
|
35
59
|
|
|
36
60
|
- Updated dependencies
|
|
37
|
-
- @contractspec/lib.contracts@1.60.0
|
|
61
|
+
- @contractspec/lib.contracts-spec@1.60.0
|
|
38
62
|
- @contractspec/lib.lifecycle@1.60.0
|
|
39
63
|
|
|
40
64
|
## 1.59.0
|
|
@@ -46,7 +70,7 @@
|
|
|
46
70
|
### Patch Changes
|
|
47
71
|
|
|
48
72
|
- Updated dependencies [1a0cf44]
|
|
49
|
-
- @contractspec/lib.contracts@1.59.0
|
|
73
|
+
- @contractspec/lib.contracts-spec@1.59.0
|
|
50
74
|
- @contractspec/lib.lifecycle@1.59.0
|
|
51
75
|
|
|
52
76
|
## 1.58.0
|
|
@@ -59,7 +83,7 @@
|
|
|
59
83
|
|
|
60
84
|
- Updated dependencies [d1f0fd0]
|
|
61
85
|
- Updated dependencies [4355a9e]
|
|
62
|
-
- @contractspec/lib.contracts@1.58.0
|
|
86
|
+
- @contractspec/lib.contracts-spec@1.58.0
|
|
63
87
|
- @contractspec/lib.lifecycle@1.58.0
|
|
64
88
|
|
|
65
89
|
## 1.57.0
|
|
@@ -78,7 +102,7 @@
|
|
|
78
102
|
- Updated dependencies [4651e06]
|
|
79
103
|
- Updated dependencies [ad9d10a]
|
|
80
104
|
- Updated dependencies [11a5a05]
|
|
81
|
-
- @contractspec/lib.contracts@1.57.0
|
|
105
|
+
- @contractspec/lib.contracts-spec@1.57.0
|
|
82
106
|
- @contractspec/lib.lifecycle@1.57.0
|
|
83
107
|
|
|
84
108
|
## 1.56.1
|
package/dist/index.d.ts
CHANGED
|
@@ -13,4 +13,3 @@ export { BaselineCalculator } from './anomaly/baseline-calculator';
|
|
|
13
13
|
export { AnomalyDetector, type AnomalySignal, type AnomalyThresholds, } from './anomaly/anomaly-detector';
|
|
14
14
|
export { RootCauseAnalyzer, type RootCauseAnalysis, } from './anomaly/root-cause-analyzer';
|
|
15
15
|
export { AlertManager } from './anomaly/alert-manager';
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -25,4 +25,3 @@ export declare class IntentDetector {
|
|
|
25
25
|
detectFromMetrics(current: AggregatedOperationMetrics[], previous?: AggregatedOperationMetrics[]): IntentSignal[];
|
|
26
26
|
detectSequentialIntents(sequences: OperationSequence[]): IntentSignal[];
|
|
27
27
|
}
|
|
28
|
-
//# sourceMappingURL=detector.d.ts.map
|
package/dist/logging/index.d.ts
CHANGED
package/dist/metrics/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnalyticsReader, DateRangeInput } from '@contractspec/lib.contracts
|
|
1
|
+
import type { AnalyticsReader, DateRangeInput } from '@contractspec/lib.contracts-integrations';
|
|
2
2
|
import type { AggregatedOperationMetrics, OperationSequence, TelemetrySample } from '../intent/aggregator';
|
|
3
3
|
export interface ReadTelemetrySamplesInput {
|
|
4
4
|
operations?: {
|
|
@@ -24,4 +24,3 @@ export declare class PosthogBaselineReader {
|
|
|
24
24
|
private readTopErrors;
|
|
25
25
|
private queryHogQL;
|
|
26
26
|
}
|
|
27
|
-
//# sourceMappingURL=posthog-baseline-reader.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnalyticsProvider } from '@contractspec/lib.contracts
|
|
1
|
+
import type { AnalyticsProvider } from '@contractspec/lib.contracts-integrations';
|
|
2
2
|
import type { IntentAggregatorSnapshot, TelemetrySample } from '../intent/aggregator';
|
|
3
3
|
export interface PosthogTelemetryProviderOptions {
|
|
4
4
|
eventPrefix?: string;
|
|
@@ -12,4 +12,3 @@ export declare class PosthogTelemetryProvider {
|
|
|
12
12
|
captureSample(sample: TelemetrySample): Promise<void>;
|
|
13
13
|
captureSnapshot(snapshot: IntentAggregatorSnapshot): Promise<void>;
|
|
14
14
|
}
|
|
15
|
-
//# sourceMappingURL=posthog-telemetry.d.ts.map
|
package/dist/tracing/index.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ import { type Span, type Tracer } from '@opentelemetry/api';
|
|
|
2
2
|
export declare function getTracer(name?: string): Tracer;
|
|
3
3
|
export declare function traceAsync<T>(name: string, fn: (span: Span) => Promise<T>, tracerName?: string): Promise<T>;
|
|
4
4
|
export declare function traceSync<T>(name: string, fn: (span: Span) => T, tracerName?: string): T;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,4 +12,3 @@ export interface TracingMiddlewareOptions {
|
|
|
12
12
|
actorResolver?: (req: Request) => string | undefined;
|
|
13
13
|
}
|
|
14
14
|
export declare function createTracingMiddleware(options?: TracingMiddlewareOptions): (req: Request, next: () => Promise<Response>) => Promise<Response>;
|
|
15
|
-
//# sourceMappingURL=middleware.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.observability",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "OpenTelemetry-based observability primitives",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -22,21 +22,22 @@
|
|
|
22
22
|
"lint": "bun lint:fix",
|
|
23
23
|
"lint:fix": "eslint src --fix",
|
|
24
24
|
"lint:check": "eslint src",
|
|
25
|
-
"test": "bun test",
|
|
25
|
+
"test": "bun test --pass-with-no-tests",
|
|
26
26
|
"prebuild": "contractspec-bun-build prebuild",
|
|
27
27
|
"typecheck": "tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@contractspec/lib.lifecycle": "
|
|
31
|
-
"@contractspec/lib.contracts": "
|
|
30
|
+
"@contractspec/lib.lifecycle": "2.0.0",
|
|
31
|
+
"@contractspec/lib.contracts-spec": "2.0.0",
|
|
32
|
+
"@contractspec/lib.contracts-integrations": "2.0.0"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"@opentelemetry/api": "*"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@contractspec/tool.typescript": "
|
|
38
|
+
"@contractspec/tool.typescript": "2.0.0",
|
|
38
39
|
"typescript": "^5.9.3",
|
|
39
|
-
"@contractspec/tool.bun": "
|
|
40
|
+
"@contractspec/tool.bun": "2.0.0"
|
|
40
41
|
},
|
|
41
42
|
"exports": {
|
|
42
43
|
".": {
|