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
14 changes: 0 additions & 14 deletions .changeset/otel-trace-correlation.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/rust-otel-correlation.md

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @smooai/logger

## 4.3.0

### Minor Changes

- 9c4fc8e: Correlate logs with OpenTelemetry traces. When a span is active, log records
now carry the span's real W3C `traceId` + `spanId` instead of a fabricated
uuid (falling back to the prior uuid correlation id only when no span is
active). Each log line is also bridged into the standard
`@opentelemetry/api-logs` facade, so it becomes an OTLP log record β€” correlated
to the active span β€” whenever an observability LoggerProvider is registered
(e.g. `@smooai/observability`'s logs signal). With no provider registered the
bridge is a no-op and stdout output is unchanged. Depends only on the
`@opentelemetry/api` + `@opentelemetry/api-logs` facades (no SDK, no circular
dep on `@smooai/observability`).

### Patch Changes

- 2d4accf: Rust: log lines now carry the active OTel span's real W3C `traceId`/`spanId`
(guarded on `span_context.is_valid()`), falling back to the correlation uuid,
and are teed into `tracing` so a single subscriber sees both.

`ContextKey` is now `#[non_exhaustive]`. It gains a variant whenever the family
learns a new correlation field β€” `SpanId` is this release's β€” and without that
attribute each addition is a source-breaking change for any downstream crate
matching on it exhaustively.

## 4.2.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smooai/logger",
"version": "4.2.1",
"version": "4.3.0",
"description": "A powerful contextual logging system designed for AWS Lambda and Browser environments, with built-in support for structured logging, correlation tracking, and automatic context gathering.",
"homepage": "https://github.com/SmooAI/logger#readme",
"bugs": {
Expand Down
Loading