Type Alias: NestLensPreset
NestLensPreset =
"failures-only"
Defined in: presets.ts:23
A configuration written out for a job people keep having to write themselves.
Recording only what failed, in production, takes five settings that are only
correct together — and one of them, the order in which sampling and the
filter run, is stated nowhere but in the collector's source. An application
reported reaching it at a hundred lines of configuration, arrived at by
reading collector.service.ts:
sampling.rate 0, so nothing ordinary is kept
sampling.always the types that are still kept — and filter never sees
what this drops, which is the part nobody guesses
filter narrows those types down to their failures
captureResponse off, because a payload is built before sampling is asked
traceFieldResolvers off, for the same reason
That is knowledge the library has and the reader should not need to
rediscover. preset puts it in the package.