Repository navigation
Releases: nestjs/observe
Releases · nestjs/observe
Release list
Release 0.3.16
- Merge pull request #35 from nestjs/feat/link-wires-existing-apps (7471996)
- feat: link installs and wires the sdk in apps that do not use it yet (6e61737)
- Merge pull request #33 from nestjs/ci/mongo-7 (9c63f4d)
- ci: run the mongo service on 7, which starts on the runners' new kernel (1841b6f)
- Merge pull request #32 from nestjs/fix/optional-key-pair (e9efd31)
- fix: type appKey and appSecret as optional, since the environment fills them (b239bd3)
Release 0.3.15
What's Changed
- feat: link a project from the terminal with npx @nestjs/observe link by @kamilmysliwiec in #31
Full Changelog: 0.3.14...0.3.15
Release 0.3.14
What's Changed
- feat: say once that the collector accepted the first batch by @kamilmysliwiec in #30
Full Changelog: 0.3.13...0.3.14
Release 0.3.13
What's Changed
- feat: add an enabled option to switch the agent off by @kamilmysliwiec in #27
- feat: support custom request operation ids by @sgarner in #22
- feat: instrument mssql (SQL Server) database queries by @sgarner in #23
- feat: send only server errors while an account's overage is paused by @kamilmysliwiec in #24
- fix: patch driver copies nested in prisma's pg adapter and other dependents by @kamilmysliwiec in #28
New Contributors
Full Changelog: 0.3.12...0.3.13
Release 0.3.12
What's Changed
- fix: tell a paced Free day apart from a spent allowance by @kamilmysliwiec in #18
- feat: tell the collector which ingest modes the agent can read by @kamilmysliwiec in #19
- fix: stop retrying rejected credentials every flush by @kamilmysliwiec in #20
Full Changelog: 0.3.11...0.3.12
Release 0.3.11
Security
We recommend upgrading if you use forwardLogs: true.
Forwarded log lines are parsed inside process.stdout.write, and the pattern that recognises Nest's log format could be slow on lines containing very long runs of whitespace. If such a line made it into your logs - for example from a logged request parameter - parsing it could noticeably delay the event loop. Parsing now takes linear time regardless of input (81b983f).
Two related improvements ship alongside it:
- The JWT redaction rule is now linear as well. It also applies to error messages and to request bodies captured with
http.capture.body, so very large values there are cheaper to redact too (81b983f). - A forwarded log line's metadata is now kept within the collector's limits: a
contextis redacted like the message and capped at 255 characters, a trace id read from a line must match thex-request-idformat, and levels are mapped onto Nest's. Previously an out-of-range value could cause the collector to reject the batch it arrived in (81b983f).
Thanks to Romy for reporting this privately.
Fixes
- Forwarded
VERBOSElines now carry their level and context (81b983f). - JSON logs from winston, pino and similar loggers are now accepted with their own level names:
info,warningandtracemap tolog,warnandverbose, and any other level is kept asattributes.level(81b983f). - If the collector rejects a batch because a value is too long or not one it accepts, the agent now removes just that value - or the entry that needs it - and resends the rest, instead of dropping the batch (0ea1b03).
maxTracesPerBatchis capped at 5000, the most the collector accepts in one batch (0ea1b03).- Nest's
Reflectoris no longer instrumented. Its metadata lookups ran several times per request and added spans without adding insight. By @kamilmysliwiec in #17 - The reduced-ingest notice now says what is still kept - requests, jobs, errors, and full traces for server errors, slow requests and failed jobs - and a new notice covers trimmed traces on paid plans. By @kamilmysliwiec in #16
Worth knowing
- A trace id is read back from a log line only if it matches
[A-Za-z0-9._:-]{1,128}. Otherwise the line uses the trace id of the request it was written in. - The JWT rule no longer matches a token directly preceded by a hyphen (
x-eyJ…). Thetoken=andBearerrules are unchanged.
Full Changelog: 0.3.10...0.3.11
Release 0.3.10
What's Changed
- fix: preserve trace arrays during degraded ingestion by @rajzzz in #14
- fix: flush buffered telemetry before the worker shuts down by @kamilmysliwiec in #15
New Contributors
Full Changelog: 0.3.9...0.3.10
Release 0.3.9
- Merge pull request #13 from nestjs/renovate/grpc (91dd01a)
- chore(deps): update dependency @grpc/grpc-js to v1.14.6 (e95035a)
- Merge pull request #12 from nestjs/renovate/commit-tooling (ee00a7b)
- build: resolve peers the legacy way in every npm run (0b69858)
- chore(deps): update commit tooling (faafdc0)
- Merge pull request #11 from johnnyhuirilef/fix/keep-returned-promise (a2cbf08)
- fix: ignore the async_hooks symbols when telling a plain promise apart (e12c988)
- fix: chain a plain promise so a dropped rejection still surfaces (0b1e435)
- Merge remote-tracking branch 'origin/master' into pr-11 (3cc1a6e)
- Merge pull request #10 from johnnyhuirilef/fix/provider-without-constructor (24c07ef)
- fix: return the original promise from an instrumented method (d7cb5ff)
- fix: keep an instance without a constructor working (8eff976)
Release 0.3.8
Release 0.3.7
- fix: link the demo instead of a 401 for nest new placeholder keys (bf6545e)