Skip to content

evlog@3.0.0-beta.3

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Nov 17:09
· 1 commit to main since this release
a3b287d

What's Changed

Breaking Changes 💥

  • Removes the evlog/eve entry point by @HugoRCD in #1134
  • The AI block on wide events moves from ai to gen_ai, for evlog/ai and @evlog/eve by @HugoRCD in #1131
  • A second log.error() on the same request or job logger now replaces the first error instead of merging into it by @HugoRCD in #1111
  • Three optional peer ranges stop at the majors evlog is tested on by @HugoRCD in #1038
  • On macOS and Linux, the file system drain (evlog/fs) creates its directories with mode 0700 and its log files with mode 0600, so only the account that runs the app can read the events by @HugoRCD in #1002

Features 🚀

  • Nitro v3, Nitro v2 and Nuxt by @HugoRCD in #1119
  • evlog/workers: the logger withEvlog passes to the handler now has log.fork(label, fn) by @HugoRCD in #1112
  • Add errorHandler: false to the evlog/nuxt, evlog/nitro and evlog/nitro/v2 modules by @HugoRCD in #1110
  • Add sampling.minLevel, a severity floor for wide events by @Mystery01092000 in #1045
  • The evlog/nuxt module takes client: false for server-only apps by @HugoRCD in #1099
  • createRequestLogger() now accepts operation in its options and puts it on the wide event, so a task, queue worker or cron job can name itself at creation time by @Mystery01092000 in #1044
  • Nuxt and Nitro now run the request hooks of evlog plugins by @HugoRCD in #1067
  • Add evlog/otel by @HugoRCD in #1066
  • The Better Stack adapter now sends a message, as Better Stack's own @logtail/node client does by @HugoRCD in #1036
  • evlog/fastify attaches the request logger to request.evlog, typed as ForkableLogger, so request.evlog.set(), .fork() and .audit() type-check by @HugoRCD in #1020

Bug Fixes 🐞

  • A custom error's own toJSON now decides how its data and internal fields are logged by @HugoRCD in #1103
  • The AI section of pretty output (gen_ai.usage, gen_ai.tools, gen_ai.response, ...) now loads on demand with the pretty-error formatter, so production bundles no longer contain it by @HugoRCD in #1117
  • The pretty-error formatter (the Why: / Fix: / code-frame block in pretty output) now loads on demand with a dynamic import(), so production bundles no longer contain it by @HugoRCD in #1116
  • Framework entries (evlog/hono, evlog/express, evlog/next, evlog/nitro, evlog/nuxt, evlog/workers, ...) and evlog/toolkit no longer load the audit helpers (withAudit, signed, auditDiff, auditOnly, auditEnricher, mockAudit) by @HugoRCD in #1115
  • The Nitro v2, Nitro v3 and Nuxt integrations now use the incoming x-request-id header as the event's requestId, as every other integration does by @HugoRCD in #1109
  • Fix the fs drain losing events when maxFiles and maxSizePerFile are both set by @HugoRCD in #1108
  • The evlog executable runs from a directory whose package.json does not parse by @HugoRCD in #1101
  • evlog/nitro (Nitro 3) now emits a streamed response's wide event (text/event-stream, NDJSON, chunked, AI SDK UI streams) once its body ends or the client leaves, instead of when the headers are sent by @HugoRCD in #1098
  • fix(deps): restore peer dependency floors by @HugoRCD in #1094
  • auditDiff now reports changes to Date, Set, Map and RegExp fields as a replace (a Date is compared by timestamp, so an equal one emits nothing) by @orshih6 in #1060
  • The creditCard built-in no longer masks the digit groups of a UUID by @onmax in #1042
  • Widen the optional nitro peer range so that nitro@3.0.261103-rc installs without a peer conflict by @HugoRCD in #1080
  • fix(nitro): widen the nitro peer range to the 3.0.261103-rc and stable nitro 3 releases by @HugoRCD in #1082
  • createDrainPipeline from evlog/pipeline, and the AuditActor and AuditFields types from evlog, show their documentation again in the published types and in editor hovers by @HugoRCD in #1072
  • Sentry logs now carry the reserved user.id attribute when the wide event has a user, the same attribute the official Sentry SDK sets from its user scope by @evlogai[bot] in #1061
  • fix(eve): register v26 hook events only before eve 0.84 by @HugoRCD in #1055
  • The Nitro plugin (evlog/nitro and evlog/nitro/v2, so the Nuxt module too) no longer clears a drain that another Nitro plugin set with initLogger({ drain }) by @HugoRCD in #1035
  • parseError() now keeps the why, fix and link an Error carries as its own properties by @onmax in #1043
  • fix(eve): read the v27 session events of eve 0.84 and later by @HugoRCD in #1019
  • On Hono, React Router and SvelteKit, a request that evlog does not log now gets a logger that accepts every call and emits nothing, on c.get('log'), context.get(loggerContext) and event.locals.log by @HugoRCD in #1015
  • Type log.fork() as always present on the request logger that an integration attaches by @adelrodriguez in #1011
  • log.fork(label, fn) now runs fn on a request that evlog does not log by @adelrodriguez in #1011
  • Split adapter batches at each provider's documented per-request limits by @HugoRCD in #1005
  • fix(nuxt): register Nitro v3 error handler and plugin on Nitro 3 by @danielroe in #1007

Tests 🧪

  • test: measure a linear-time check again before failing it on one noisy sample by @HugoRCD in #1122
  • test(cli): cover init and agents through the parser and gate coverage by @HugoRCD in #1123
  • test: time linear-time checks on the calling thread's CPU only by @HugoRCD in #1127
  • test: add e2e suites for the fs, otlp, hyperdx and datadog drains by @HugoRCD in #1106
  • test(nitro): drop duplicate inline-replace parse test by @evlogai[bot] in #1091
  • test: assert linear time by scaling ratio, not a 100ms cap by @HugoRCD in #1027
  • test(bench): derive size entries from exports and re-record the baselines by @HugoRCD in #1037
  • test: time linear-time checks on the fastest of three runs by @HugoRCD in #1006

Refactoring 🛠

  • refactor(next): drop unused state and one-use wrappers by @evlogai[bot] in #1093
  • refactor(next): reuse gate types for instrumentation module by @evlogai[bot] in #1092
  • refactor: drop dead code in the fs, sentry and posthog adapters by @evlogai[bot] in #1046
  • refactor: dedupe adapter helpers in fs, sentry, hyperdx and sazabi by @evlogai[bot] in #1047
  • refactor(next): drop unused local imports in client by @evlogai[bot] in #1029

Dependency Updates 📦

  • chore(deps): update all non-major dependencies by @renovate[bot] in #1068
  • chore(deps): update nuxt framework to ^4.6.4 by @renovate[bot] in #1026
  • chore(deps): update all non-major dependencies by @renovate[bot] in #1025

Performance Improvements ⚡️

  • perf(core): gate built-in redact patterns and copy plain events without structuredClone by @OskarLebuda in #1030

Other Changes 🔨

  • feat(cli): add evlog logs --session and show a redelivered event once by @HugoRCD in #1130
  • test(core): allow linear-time checks a 32x ratio for Node 22's slower long strings by @HugoRCD in #1118
  • test: time linear-time checks on the calling thread's CPU only by @HugoRCD in #1126
  • chore: merge main into v3 by @HugoRCD in #1120
  • chore: merge main into v3 by @HugoRCD in #1121
  • test(bench): add a bundle-size budget with esbuild scenarios and unpacked size by @HugoRCD in #1114
  • fix: stop timing flakes on main from failing evi deploys by @HugoRCD in #1071
  • docs: keep observability score as the evlog map headline by @HugoRCD in #1018
  • docs: rename adapter to drain and freeze product words by @evlogai[bot] in #976

Changelog: https://github.com/evloghq/evlog/blob/evlog@3.0.0-beta.3/packages/evlog/CHANGELOG.md#300-beta3
Full Changelog: https://github.com/evloghq/evlog/compare/evlog@3.0.0-beta.2...evlog@3.0.0-beta.3