Skip to content

Support sending logs to Datadog v2 endpoints.#48

Merged
remeh merged 4 commits into
masterfrom
remeh/v2-routes
Oct 18, 2021
Merged

Support sending logs to Datadog v2 endpoints.#48
remeh merged 4 commits into
masterfrom
remeh/v2-routes

Conversation

@remeh
Copy link
Copy Markdown
Contributor

@remeh remeh commented Oct 18, 2021

What does this PR do?

Add support to send logs to Datadog v2 endpoints.

Additional Notes

This PR is also adding a public variable containing current Gem version.

CHANGELOG/version update are also done in this PR.

Copy link
Copy Markdown
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

LGTM overall!

Although I realize there's one more change you need to make, and that wasn't originally tracked in your card: the v2 API will start returning 429 HTTP responses. When a 429 is received, the payload should be retried after a backoff period. Basically, handling 429s with a behavior that’s similar to 5xxs makes sense for now. No need to handle 429s differently between v1 and v2 endpoints, even though the current v1 API should not return 429s.

Comment thread lib/fluent/plugin/version.rb Outdated
@remeh
Copy link
Copy Markdown
Contributor Author

remeh commented Oct 18, 2021

Thanks for the review @olivielpeau 🙇 I've addressed your feedback.

Copy link
Copy Markdown
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

LGTM if you were able to test this e2e with a fluentd setup 👍

@remeh
Copy link
Copy Markdown
Contributor Author

remeh commented Oct 18, 2021

@olivielpeau yes I've successfully validated E2E. I'll create a short doc to reproduce the local setup.
Merging and releasing, thanks again for the review 👍

@remeh remeh merged commit 9e52dd3 into master Oct 18, 2021
@remeh remeh deleted the remeh/v2-routes branch October 18, 2021 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants