What's Changed
Features ๐
- Add
errorHandler: falseto theevlog/nuxt,evlog/nitroandevlog/nitro/v3modules by @HugoRCD in #1110 - Add
sampling.minLevel, a severity floor for wide events by @Mystery01092000 in #1045 - The
evlog/nuxtmodule takesclient: falsefor server-only apps by @HugoRCD in #1099 createRequestLogger()now acceptsoperationin 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/nodeclient does by @HugoRCD in #1036 evlog/fastifyattaches the request logger torequest.evlog, typed asForkableLogger, sorequest.evlog.set(),.fork()and.audit()type-check by @HugoRCD in #1020
Bug Fixes ๐
- Fix the fs drain losing events when
maxFilesandmaxSizePerFileare both set by @HugoRCD in #1108 - The
evlogexecutable runs from a directory whosepackage.jsondoes not parse by @HugoRCD in #1101 evlog/nitro/v3now 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, andnextpeer ranges so that the patch versions they already accepted install without a peer conflict by @HugoRCD in #1094 auditDiffnow reports changes toDate,Set,MapandRegExpfields as areplace(aDateis compared by timestamp, so an equal one emits nothing) by @orshih6 in #1060- The
creditCardbuilt-in no longer masks the digit groups of a UUID by @onmax in #1042 - Widen the optional
nitropeer range so thatnitro@3.0.261103-rcand stable Nitro 3 releases such asnitro@3.0.0install without a peer conflict by @HugoRCD in #1082 createDrainPipelinefromevlog/pipeline, and theAuditActorandAuditFieldstypes fromevlog, show their documentation again in the published types and in editor hovers by @HugoRCD in #1072- Sentry logs now carry the reserved
user.idattribute 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/nitroandevlog/nitro/v3, so the Nuxt module too) no longer clears a drain that another Nitro plugin set withinitLogger({ drain })by @HugoRCD in #1035 parseError()now keeps thewhy,fixandlinkanErrorcarries as its own properties by @onmax in #1043defineEvlogHook()fromevlog/evenow 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)andevent.locals.logby @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 runsfnon 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 โก๏ธ
- Redaction is 2 to 3.7 times faster on typical wide events by @OskarLebuda in #1030
Other Changes ๐จ
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