Skip to content

Commit 5fb6655

Browse files
committed
add transport section to support tls
1 parent 597fdfa commit 5fb6655

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/fluent/plugin/in_otlp.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class OtlpInput < Input
2222
config_param :port, :integer, default: 4318
2323
end
2424

25+
config_section :transport, required: false, multi: false, init: true, param_name: :transport_config do
26+
config_argument :protocol, :enum, list: [:tls], default: nil
27+
end
28+
2529
class HttpHandler
2630
def logs(req, &block)
2731
common(req, Otlp::Request::Logs, Otlp::Response::Logs, &block)

0 commit comments

Comments
 (0)