Skip to content

docs: clarify transport level filtering behavior#2390

Merged
mcollina merged 1 commit intomainfrom
docs/clarify-transport-level-filtering
Feb 8, 2026
Merged

docs: clarify transport level filtering behavior#2390
mcollina merged 1 commit intomainfrom
docs/clarify-transport-level-filtering

Conversation

@mcollina
Copy link
Copy Markdown
Member

@mcollina mcollina commented Feb 7, 2026

Summary

This PR clarifies the transport-level filtering behavior reported in #2388.

What changed

  • Added an explicit section to docs/transports.md describing how filtering differs between:
    • single target / single pipeline
    • multiple targets
  • Added a clearer ASCII architecture diagram that separates main-thread and worker-thread filtering.
  • Clarified in docs/api.md that:
    • targets[i].level defaults to info when omitted
    • top-level level in pino.transport({...}) is not a filter
    • per-target filtering is applied in multi-target mode

Why

Issue #2388 highlights confusion around where and when levels are applied. The current implementation is correct but under-documented. This PR documents the actual architecture and filtering gates to reduce misconfiguration and surprises.

Closes #2388

@mcollina mcollina merged commit 6a8e598 into main Feb 8, 2026
@mcollina mcollina deleted the docs/clarify-transport-level-filtering branch February 8, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transport level behavior is unclear

2 participants