@contractspec/lib.observability
v3.7.17
Published
OpenTelemetry-based observability primitives
Downloads
11,097
Maintainers
Readme
@contractspec/lib.observability
Website: https://contractspec.io
OpenTelemetry-based observability primitives.
What It Provides
- Layer: lib.
- Consumers: evolution, progressive-delivery, bundles.
src/pipeline/contains pipeline stages and orchestration helpers.- Related ContractSpec packages include
@contractspec/lib.contracts-integrations,@contractspec/lib.contracts-spec,@contractspec/lib.lifecycle,@contractspec/tool.bun,@contractspec/tool.typescript. src/pipeline/contains pipeline stages and orchestration helpers.
Installation
npm install @contractspec/lib.observability
or
bun add @contractspec/lib.observability
Usage
Import the root entrypoint from @contractspec/lib.observability, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/anomalyis part of the package's public or composition surface.src/index.tsis the root public barrel and package entrypoint.src/intentis part of the package's public or composition surface.src/loggingis part of the package's public or composition surface.src/metricsis part of the package's public or composition surface.src/pipeline/contains pipeline stages and orchestration helpers.src/telemetryis part of the package's public or composition surface.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./anomaly/alert-managerresolves through./src/anomaly/alert-manager.ts. - Export
./anomaly/anomaly-detectorresolves through./src/anomaly/anomaly-detector.ts. - Export
./anomaly/baseline-calculatorresolves through./src/anomaly/baseline-calculator.ts. - Export
./anomaly/root-cause-analyzerresolves through./src/anomaly/root-cause-analyzer.ts. - Export
./intent/aggregatorresolves through./src/intent/aggregator.ts. - Export
./intent/detectorresolves through./src/intent/detector.ts. - Export
./loggingresolves through./src/logging/index.ts. - Export
./metricsresolves through./src/metrics/index.ts. - Export
./pipeline/evolution-pipelineresolves through./src/pipeline/evolution-pipeline.ts. - The package publishes 18 total export subpaths; keep docs aligned with
package.json.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run test— bun test --pass-with-no-testsbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
- Circular import issue.
- Normalize formatting across contracts-integrations, composio, and observability.
- Add AI provider ranking system with ranking-driven model selection.
Notes
- OTel span and metric naming conventions must stay consistent across the platform.
- Pipeline interfaces are adapter boundaries — do not leak vendor-specific details.
- Anomaly detection thresholds affect alerting; changes require validation.
