π¦ New version release - #4
Merged
Merged
Conversation
brentrager
force-pushed
the
changeset-release/main
branch
from
August 15, 2026 03:06
245ca17 to
da92d8d
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/audit@0.2.0
Minor Changes
f05a9ab: Trace correlation: an emitted audit event now carries the W3C trace context of the
request that caused it, so a row in the audit store can be joined to a trace.
The ids ride in the ENVELOPE, never inside the event. The wire body is now
{"event":<the sealed event>,"spanId":"β¦","traceId":"β¦"}. The bytes under"event"are exactly the bytes that were hashed β unchanged, byte-for-byte, withor without a trace active β because
hashCurrentcovers canonical-JSON(eventminus
hashCurrent) and any new event field would invalidate every stored chainand every fixture in
spec/parity-corpus.json. The corpus is untouched, and eachlanguage asserts it inside an active span as well as outside one. Both ids are
OMITTED when there is no valid span: never
"", never an all-zero id.TypeScript:
AuditClient.emit(event, trace?)captures the active context atemit time behind an optional
@opentelemetry/apipeer dependency. Without itinstalled (or without a registered SDK) it is a no-op, not a crash.
buildEnvelope/
currentTraceContextare exported for consumers on their own transport.Rust: the same, behind a new optional
otelcargo feature (off by default βthe crate does not link OpenTelemetry unless you ask for it).
AuditClient::emituses the ambient span;
emit_with_tracetakes an explicitTraceContextthatwins per field.
TraceContext::current()reads both context homes β atracingspan via tracing-opentelemetry and an OTel-native one β because neither falls
back to the other.
Go:
AuditClient.Emit(ctx, event)reads the span context already on thectxittakes (
trace.SpanContextFromContext(ctx).IsValid()before touching the ids), viathe OpenTelemetry trace API only β no SDK, no exporter. Pinned to otel v1.35.0,
the newest release whose
godirective (1.22.0) still builds on the Go 1.22 theCI matrix pins; v1.36+ declare go 1.23.
Python: the ids come from the ambient span behind a guarded
from opentelemetry import traceimport, exposed as the optionalotelextra(
pip install smooai-audit[otel]). Without it installed, correlation is a no-op βopentelemetry-apiis never a hard dependency..NET: reads
Activity.Currentβ the BCL type the OpenTelemetry .NET SDK itselfpopulates β so no new package reference. Non-W3C or unstarted activities report
nothing.