π¦ New version release - #5
Merged
Merged
Conversation
brentrager
force-pushed
the
changeset-release/main
branch
from
May 18, 2026 14:09
821ebf5 to
3efefde
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@smooai/observability@0.3.0
Minor Changes
bd64532: Node SDK capture handlers + Hono middleware (SMOODEV-1067 follow-up th-bafeb7).
@smooai/observability/nodenow ships real implementations:registerNodeGlobalHandlers({ flush, exitOnUncaught })β attachesuncaughtException+unhandledRejectionlisteners that forward toClient.captureException, plus optional SIGTERM / SIGINT /beforeExitflushing so a Lambda container shutdown drains the in-memory queue. Idempotent.makeNodeTransport(options)β Node-flavoredTransportadapter (fetch + keepalive, no Beacon). Returns the underlying transport so callers (and the auto-init wiring) can hook the flush method into the lifecycle.observabilityMiddleware({ resolveUser, requestHeaderAllowlist })β Hono-shaped middleware. Per request: hydrates the activeScopewith the authenticated user (defaults to readingc.get('auth')produced by@smooai/auth), adds arequestcontext with method/path and an allow-listed header subset, wraps the handler chain inwithScopeso anycaptureExceptionfired from a downstream handler picks up that request's identity, and captures thrown errors before re-throwing so Hono's onError still gets to render the response.Client.initon node now auto-wires the transport and global handlers (override withautoInstrumentation: false).Also fixed a latent bug in
withScope: previously the scope was popped before anyawaitinside the callback resolved, so request-scoped state was gone by the time async handlers ran.withScopenow defers the pop until a returned thenable settles, while keeping the synchronous fast path unchanged.24 tests total (was 13). Build + typecheck clean.
Patch Changes
2d2eed7:
@smooai/observability-otelβ OpenTelemetry foundation (SMOODEV-1067c Phase 1).New package wraps
@opentelemetry/sdk-node+@opentelemetry/auto-instrumentations-node+ the OTLP/HTTP trace exporter, and bridges the coreClientso everycaptureExceptionrecords on the active OTel span withSpanStatusCode.ERROR. Works without@smooai/loggerβ pipes correlation IDs through@opentelemetry/api's ambient context, so any logger / framework that integrates with OTel sees the same trace-id flowing through logs, traces, and Smoo error groups.Public surface:
setupOtelSdk({ serviceName, otlpEndpoint, otlpHeaders, environment, release, instrumentationConfig })β idempotent Lambda / Node bootstrap. Returns{ sdk, flush, shutdown }.bridgeClientToOtel()β wrapsClient.captureException/setUser/setTagto also update OTel span attributes + status. Idempotent.readOtelCorrelation()β read-only view of the active span'straceId/spanId/ sampled flag.Also patches
@smooai/observabilitycore docs reference; no API change.12 tests (bridge + setup), typecheck + build clean.
@smooai/observability-otel@0.2.0
Minor Changes
2d2eed7:
@smooai/observability-otelβ OpenTelemetry foundation (SMOODEV-1067c Phase 1).New package wraps
@opentelemetry/sdk-node+@opentelemetry/auto-instrumentations-node+ the OTLP/HTTP trace exporter, and bridges the coreClientso everycaptureExceptionrecords on the active OTel span withSpanStatusCode.ERROR. Works without@smooai/loggerβ pipes correlation IDs through@opentelemetry/api's ambient context, so any logger / framework that integrates with OTel sees the same trace-id flowing through logs, traces, and Smoo error groups.Public surface:
setupOtelSdk({ serviceName, otlpEndpoint, otlpHeaders, environment, release, instrumentationConfig })β idempotent Lambda / Node bootstrap. Returns{ sdk, flush, shutdown }.bridgeClientToOtel()β wrapsClient.captureException/setUser/setTagto also update OTel span attributes + status. Idempotent.readOtelCorrelation()β read-only view of the active span'straceId/spanId/ sampled flag.Also patches
@smooai/observabilitycore docs reference; no API change.12 tests (bridge + setup), typecheck + build clean.
Patch Changes
@smooai/observability-next@0.3.0
Patch Changes
@smooai/observability-react@0.3.0
Patch Changes