Repository navigation
evlog@3.0.0-beta.3
Pre-release
Pre-release
·
1 commit
to main
since this release
What's Changed
Breaking Changes 💥
- Removes the
evlog/eveentry point by @HugoRCD in #1134 - The AI block on wide events moves from
aitogen_ai, forevlog/aiand@evlog/eveby @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 mode0700and its log files with mode0600, 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 loggerwithEvlogpasses to the handler now haslog.fork(label, fn)by @HugoRCD in #1112- Add
errorHandler: falseto theevlog/nuxt,evlog/nitroandevlog/nitro/v2modules 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- Nuxt and Nitro now run the request hooks of evlog plugins by @HugoRCD in #1067
- Add
evlog/otelby @HugoRCD in #1066 - 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 🐞
- A custom error's own
toJSONnow decides how itsdataandinternalfields 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 dynamicimport(), 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, ...) andevlog/toolkitno 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-idheader as the event'srequestId, as every other integration does by @HugoRCD in #1109 - 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(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
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-rcinstalls 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
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/v2, 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 #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)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
- 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