Skip to content

Commit 1cc0a16

Browse files
committed
logger
1 parent 20fe1d2 commit 1cc0a16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/fluent/plugin/in_otlp.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def start
8383

8484
if @grpc_config
8585
thread_create(:in_otlp_grpc_server) do
86-
grpc_handler = GrpcHandler.new(@grpc_config)
86+
grpc_handler = GrpcHandler.new(@grpc_config, log)
8787
grpc_handler.run(
8888
logs: lambda { |record|
8989
router.emit(@tag, Fluent::EventTime.now, { type: Otlp::RECORD_TYPE_LOGS, message: record })
@@ -175,8 +175,9 @@ def request_response(request:, call:, method:)
175175
end
176176
end
177177

178-
def initialize(grpc_config)
178+
def initialize(grpc_config, logger)
179179
@grpc_config = grpc_config
180+
@logger = logger
180181
end
181182

182183
def run(logs:, metrics:, traces:)

0 commit comments

Comments
 (0)