OptionalignoreRequest path prefixes that should not enter ambient correlation or record events. Response headers are still written.
Defaults to the devtools dashboard prefix so its polling traffic does not fill the event timeline.
OptionalredactApply a custom redactor to events produced by the server. Sink-level redaction (such as the devtools redactor) still runs when events are stored.
OptionalrequestRequest/response header used for the request correlation ID.
Pass false to avoid reading or writing a request ID header.
OptionalshouldDecide whether to capture a completed request event.
OptionaltraceW3C trace context header used to correlate events with distributed traces.
Pass false to avoid reading or writing a trace context header.
Options for the server-owned request instrumentation pipeline.
The server resolves request IDs and W3C trace context before user hooks and context creation run, writes them to response headers, and records request and error events into the resolved provider instrumentation port (
ports.instrumentation, thenports.devtools) after responses are sent.Pass
instrumentation: falsetocreateServer(...)to disable headers and event recording entirely.