Repository navigation
Release 0.3.26
What's new?
A large maintenance release: a broad round of hardening and correctness fixes across instrumentation, the transports, the outgoing integrations, log forwarding, OTLP export and the CLI. Upgrading is recommended for everyone on 0.3.x.
Redaction
- Credentials are masked more thoroughly wherever the agent records text: request URLs and captured headers, outgoing URLs, log lines, error messages and code frames.
- Free text is held to the same list of sensitive key names as attributes, however the name is written (
apiKey,API_KEY,x-api-key,client_secret, numbered variants).
Sharing Nest's hooks with your application
- Nest gives each request, processing and dispatch hook a single slot. The agent now shares those slots with hooks your application sets - on the HTTP adapter, microservice servers, client proxies and the GraphQL request hooks - instead of replacing them, and BullMQ processor-decorator overrides are kept. The README lists the cases that cannot be shared.
WebSocket gateways
- Handlers behind interceptors are traced again, inside their message's context, so
TracerServiceworks there. - The trace of a message whose client disconnects before the handler settles is dropped rather than held.
TracerService.captureError()called outside any traced context warns once instead of throwing.
Traces and errors
- An operation records at most 10,000 spans; calls past that run untraced, and the snapshot counts them in an
observe.unrecordedSpanstag. Spans nest at most 256 levels deep. - The first 20 errors captured in a trace keep their details; later ones mark their span as failed. Error messages and stacks are recorded up to 4 kB and 8 kB.
- A database error your application caught and answered no longer becomes an HTTP request's error; it stays on the query's span, and lifts to the request only when it ended in a 5xx.
- GraphQL errors raised while parsing, validating or coercing a request's input are recorded by error class and code.
- A traced method's promise is handed back exactly as the method returned it, unless the method is
async. - Work an operation leaves running stops carrying its trace id 10 seconds after the operation ends -
currentTraceId(), outgoingx-request-id/traceparent, log lines, microservice packets and enqueued jobs.
Transports and jobs
- An aborted request's trace is dropped as soon as the response closes, on every adapter.
- Response hooks end the trace of the request or message they are handed, whatever async context they run in.
- Microservice messages are named by the route they reached, and replies to
ClientProxy/ClientGrpccalls arrive in the caller's context. - A string entry in
http.ignorematches the request's path, with or without a query string. - Every job run gets a trace of its own; callback-style Bull processors settle through
done, and BullMQ processors keep their arity, so a processor that takes an abort signal can be cancelled. - gRPC: the processing start hook runs
donesynchronously.
Log forwarding and metrics
- The stdout forwarder sends at most 50 entries per write and cuts a line at 8 kB; the lines of one multi-line message are redacted together.
- At most 1,000 custom metrics are reported; a summary that declares no labels takes at most 1,000. Non-finite values and label values that cannot key a series are ignored.
- A batch too large to send whole is sent without its largest entries rather than dropped.
Outgoing calls and OTLP
pgandmysql2callbacks, and queuedundicirequests, run in their caller's context.- SQL statements are read more accurately for MySQL, Postgres and MSSQL before they are recorded.
- Collector and OTLP replies are read up to 64 KiB, and the OTLP timeout covers the whole export.
CLI (npx @nestjs/observe link)
- Opens only
http(s)link pages, and writes only inside the project directory. - Stops with an error on a key pair outside the expected format, or when the project's
.envis tracked by git.
Full Changelog: 0.3.25...0.3.26