We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e005385 commit 3a67bacCopy full SHA for 3a67bac
lib/fluent/plugin/in_otlp.rb
@@ -4,8 +4,23 @@
4
require "fluent/plugin/otlp/constant"
5
require "fluent/plugin/otlp/request"
6
require "fluent/plugin/otlp/response"
7
+require "fluent/plugin_helper/http_server"
8
require "zlib"
9
10
+unless Fluent::PluginHelper::HttpServer::Request.method_defined?(:headers)
11
+ module Fluent::PluginHelper::HttpServer
12
+ module Extension
13
+ refine Request do
14
+ def headers
15
+ @request.headers
16
+ end
17
18
19
20
+
21
+ using Fluent::PluginHelper::HttpServer::Extension
22
+end
23
24
module Fluent::Plugin
25
class OtlpInput < Input
26
Fluent::Plugin.register_input("otlp", self)
0 commit comments