Skip to content

Releases: nestjs/observe

Release 0.3.16

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 19 Oct 19:06
2b87589
  • 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

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 19 Oct 17:33
e2ba3ff

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

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 19 Oct 17:30
6a04e41

What's Changed

Full Changelog: 0.3.13...0.3.14

Release 0.3.13

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 19 Oct 11:27
e7a007b

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

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 16 Oct 12:43
864aa11

What's Changed

Full Changelog: 0.3.11...0.3.12

Release 0.3.11

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 16 Oct 08:41
9147d58

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 context is redacted like the message and capped at 255 characters, a trace id read from a line must match the x-request-id format, 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 VERBOSE lines now carry their level and context (81b983f).
  • JSON logs from winston, pino and similar loggers are now accepted with their own level names: info, warning and trace map to log, warn and verbose, and any other level is kept as attributes.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).
  • maxTracesPerBatch is capped at 5000, the most the collector accepts in one batch (0ea1b03).
  • Nest's Reflector is 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…). The token= and Bearer rules are unchanged.

Full Changelog: 0.3.10...0.3.11

Release 0.3.10

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 13 Oct 18:05
a30c1f3

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

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 12 Oct 08:23
0008999
  • 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

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 11 Oct 19:12
40c8141
  • feat: skip CORS preflights unless http.tracePreflights is on (0347e68)
  • fix: fold the url fallback operation id to its route path (13916a5)
  • fix: keep the collector connection open between flushes (ab518a2)
  • test: reject a revoked key, cover nest new placeholders on their own (028ee72)

Release 0.3.7

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 09 Oct 08:30
c3c3eff
  • fix: link the demo instead of a 401 for nest new placeholder keys (bf6545e)