Changelog
Release history of @ratel-ai/telemetry.
@ratel-ai/telemetry release history · npm · source
Synced verbatim from the package's
CHANGELOG.mdatratel-ai/ratel@3be0ecb— do not edit by hand. Regenerate withpnpm sync:apiinapps/docs.
All notable changes to @ratel-ai/telemetry are documented here.
The format follows Keep a Changelog and this package adheres to Semantic Versioning.
[0.1.2] - 2026-07-11
Added
API_KEY_ENV(RATEL_API_KEY) and API-key environment fallback inresolveOtlpConfig. An explicitapiKeyremains authoritative; the env fallback applies only when neitherapiKeynor an explicitAuthorizationheader is given, so ambientRATEL_API_KEYnever clobbers a caller-supplied auth header.
[0.1.1] - 2026-07-10
Added
setContentCapture(mode): programmatic override of the content-capture gate. While set,contentCaptureMode()returns the given mode regardless ofOTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT— code-level config wins over the environment, matching how OpenTelemetry treats env vars as the fallback for programmatic configuration. The mode is validated exactly like the env var (case-insensitive, trimmed, legacytrue/false/1/0forms accepted) and throws aTypeErrornaming the valid values on anything unrecognized — failing loud at config time instead of storing a value that would both disable capture and mask the env var. Passnull/undefinedto clear unconditionally. Returns a generation token identifying the call as the current owner of the override.clearContentCapture(generation): clears the override only whengeneration(the token returned bysetContentCapture) still identifies the most recent set. A stale token no-ops, so an old telemetry handle shutting down late cannot clobber an override a newer caller installed and silently flip capture back to the env value.
[0.1.0] - 2026-07-06
Added
- The telemetry helper (ADR-0015): the full
ratel.*vocabulary as constants (attribute keys, span/event names,gen_ai.*interop keys, and theOrigin/SearchTarget/AuthOutcomevalue enums) pinned to OpenTelemetry semconvgen_aiv1.42.0. - Shared contract-against-the-pin conformance suite (
../conformance/fixtures.json): spans built from the constants through the real SDK must emit the exact pinned keys. - Usage example in the README (runnable end-to-end in
examples/telemetry-ts). - A regression guard that no
@opentelemetry/*runtime dependency or shipped-source import can creep back into the vocabulary package.
Changed
init()lives in@ratel-ai/telemetry-otlp, not this package: importing@ratel-ai/telemetrypulls no OpenTelemetry SDK (ADR-0015), so the SDK (emit), the server (read), and edge/serverless emitters take theratel.*vocabulary weight-free. This package keeps the constants plus the pureresolveOtlpConfig/contentCaptureMode; callers ofinit()install@ratel-ai/telemetry-otlpand import it from there.- Released as an independent npm unit under the
telemetry-ts-v*tag prefix.