Skip to content

Commit

Permalink
test_io_handler: Follow a recent change in metrics
Browse files Browse the repository at this point in the history
`throttling_metrics` has been newly added.

Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie committed Aug 6, 2024
1 parent aa02f59 commit 18ef7e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/plugin/in_tail/test_io_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def setup
closed_file_metrics.configure(config_element('metrics', '', {}))
rotated_file_metrics = Fluent::Plugin::LocalMetrics.new
rotated_file_metrics.configure(config_element('metrics', '', {}))
@metrics = Fluent::Plugin::TailInput::MetricsInfo.new(opened_file_metrics, closed_file_metrics, rotated_file_metrics)
throttling_metrics = Fluent::Plugin::LocalMetrics.new
throttling_metrics.configure(config_element('metrics', '', {}))
@metrics = Fluent::Plugin::TailInput::MetricsInfo.new(opened_file_metrics, closed_file_metrics, rotated_file_metrics, throttling_metrics)
yield
end
end
Expand Down

0 comments on commit 18ef7e6

Please sign in to comment.