Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .changeset/session-scoped-sampling.md

This file was deleted.

12 changes: 12 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @smooai/observability

## 0.12.0

### Minor Changes

- a071796: SMOODEV-2698 (ADR-097 W1+W2): session-scoped browser log sampling, config-served telemetry settings, and the cross-language parity corpus.
- `sampleDecision(id, ratio)` β€” deterministic FNV-1a 32-bit over the UTF-8 bytes of the session/trace id, so the decision is stable for a page's lifetime and reproducible byte-identically in the Rust/Python/Go/.NET SDKs. Ratio 0.0/1.0 are exact.
- `shouldEmitLog(...)` β€” one decision point: kill switch β†’ minimum level β†’ warnings/errors always 100% β†’ trace decision inherited where a trace exists β†’ otherwise the session decision. Sampling is per session, never per line, so any trace you can open has 100% of its log lines.
- `loadTelemetrySettings(provider)` / `resolveTelemetrySettings(raw)` β€” `@smooai/config` public-tier telemetry settings read through an injectable provider seam (the SDK never imports a config client, so it stays usable with no network). Unreachable, malformed, or out-of-range values fall back to the compiled-in ADR-010 defaults, never to "sample everything out".
- `parseTraceparent` / `formatTraceparent` β€” the first real W3C trace-context implementation in this SDK; strict, rejects all-zero ids.
- `normalizeLevel` β€” canonical UPPERCASE levels, because ADR-096's error-rate query is case-sensitive.
- `parity/sampling-corpus.json` β€” 170 committed golden vectors every language SDK asserts against in its own CI lane.

## 0.11.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smooai/observability",
"version": "0.11.0",
"version": "0.12.0",
"description": "Smoo AI Observability SDK β€” OTel-first error capture, traces, metrics, and React/Next.js integrations in a single package with subpath exports",
"license": "MIT",
"repository": {
Expand Down
Loading