Skip to content

in_http: document undocumented parameters and Plugin Helpers - #668

Merged
kenhys merged 1 commit into
fluent:1.0from
Watson1978:docs-in_http-undocumented
Aug 7, 2026
Merged

in_http: document undocumented parameters and Plugin Helpers#668
kenhys merged 1 commit into
fluent:1.0from
Watson1978:docs-in_http-undocumented

Conversation

@Watson1978

Copy link
Copy Markdown
Contributor

Four parameters are accepted by in_http but were not described anywhere in the documentation, and the page had no Plugin Helpers section at all even though every other input plugin page has one.

  • backlog (0.10.36) integer, nil
  • dump_error_log (1.11.1) bool, true
  • add_query_params (1.12.0) bool, false
  • add_tag_prefix (1.18.0) string, nil

Notes on the descriptions:

  • backlog reuses the wording added to input/forward.md, because both plugins pass the value to server_create_connection and end up at Addrinfo#listen, whose default is Socket::SOMAXCONN.
  • dump_error_log only suppresses the log.error calls on the 400 and 500 paths. The response to the client is unchanged, so the text says so.
  • add_query_params applies the same name conversion as add_http_headers (k.tr('-','_').upcase), so the text points at that parameter and gives ?user-id=1 to QUERY_USER_ID as an example.
  • add_tag_prefix raises a configuration error on an empty value.

Plugin Helpers lists the four helpers declared in in_http.rb in declaration order: parser, compat_parameters, event_loop, server.

Four parameters are accepted by in_http but were not described anywhere
in the documentation, and the page had no Plugin Helpers section at all
even though every other input plugin page has one.

* backlog           (0.10.36)  integer, nil
* dump_error_log    (1.11.1)   bool, true
* add_query_params  (1.12.0)   bool, false
* add_tag_prefix    (1.18.0)   string, nil

Notes on the descriptions:

* backlog reuses the wording added to input/forward.md, because both
  plugins pass the value to server_create_connection and end up at
  Addrinfo#listen, whose default is Socket::SOMAXCONN.
* dump_error_log only suppresses the log.error calls on the 400 and 500
  paths. The response to the client is unchanged, so the text says so.
* add_query_params applies the same name conversion as add_http_headers
  (k.tr('-','_').upcase), so the text points at that parameter and gives
  ?user-id=1 to QUERY_USER_ID as an example.
* add_tag_prefix raises a configuration error on an empty value.

Plugin Helpers lists the four helpers declared in in_http.rb in
declaration order: parser, compat_parameters, event_loop, server.

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978
Watson1978 requested a review from kenhys August 7, 2026 04:54
@kenhys
kenhys merged commit f1f75dc into fluent:1.0 Aug 7, 2026
2 checks passed
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.

2 participants