Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin now supports interruption. #43

Merged
merged 5 commits into from
Jun 7, 2024

Conversation

kxs-who
Copy link
Contributor

@kxs-who kxs-who commented Dec 8, 2023

What does this PR do?

It attempts to fix #42

The DataDog plugin has been enhanced to leverage Logstash Output Plugin APIs. Specifically, the pipeline_shutdown_requested? method from parent class LogStash::Outputs::Base.

Motivation

Configuring Logstash's Persistent Queues (https://www.elastic.co/guide/en/logstash/current/persistent-queues.html) wouldn't work properly in all scenarios (e.g. gracefully restarting Logstash) involving DataDog Logstash Output Plugin.

Additional Notes

These changes are mostly inspired by the Logstash Http Output Plugin. Logstash's Persistent Queues work as intended when using this output plugin.

@kxs-who kxs-who requested review from a team as code owners December 8, 2023 21:30
@kxs-who kxs-who requested a review from a team as a code owner June 4, 2024 21:21
Copy link
Contributor

@StephenWakely StephenWakely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. This works well.

@StephenWakely StephenWakely merged commit 8c1af6e into DataDog:master Jun 7, 2024
8 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
3 participants