Skip to content

evlog@2.36.0

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Nov 16:58
3ed9aae

What's Changed

Features 🚀

  • Add errorHandler: false to the evlog/nuxt, evlog/nitro and evlog/nitro/v3 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
  • 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 🐞

  • 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/v3 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
  • Widen the optional @nestjs/common, @nestjs/core, elysia, effect, hono, and next peer ranges so that the patch versions they already accepted install without a peer conflict 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 and stable Nitro 3 releases such as nitro@3.0.0 install without a peer conflict 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/v3, 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
  • defineEvlogHook() from evlog/eve now reads the v27 session events of eve 0.84 and later, eve 1.0 included 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

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

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 ⚡️

Other Changes 🔨

  • fix: stop timing flakes on main from failing evi deploys by @HugoRCD in #1071

Changelog: https://github.com/evloghq/evlog/blob/evlog@2.36.0/packages/evlog/CHANGELOG.md#2360
Full Changelog: https://github.com/evloghq/evlog/compare/evlog@2.35.1...evlog@2.36.0