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

ft: DataDog adaptor #2020

Merged
merged 13 commits into from
May 13, 2024
Merged

ft: DataDog adaptor #2020

merged 13 commits into from
May 13, 2024

Conversation

hauleth
Copy link
Contributor

@hauleth hauleth commented Mar 29, 2024

This introduces wrapper adaptor over Webhook adaptor to send logs to
DataDog HTTP log ingest endpoint.

@hauleth hauleth force-pushed the ft/datadog-adaptor branch 4 times, most recently from 06f0644 to 4cc6f32 Compare April 8, 2024 15:34
@hauleth hauleth force-pushed the ft/datadog-adaptor branch from 4cc6f32 to a688a23 Compare April 10, 2024 16:35
@hauleth hauleth marked this pull request as ready for review April 10, 2024 16:39
@hauleth hauleth requested a review from Ziinc April 10, 2024 16:40
@hauleth hauleth force-pushed the ft/datadog-adaptor branch 2 times, most recently from fa87305 to e345d50 Compare April 10, 2024 18:49
test/logflare/backends/adaptor/datadog_adaptor_test.exs Outdated Show resolved Hide resolved
lib/logflare/backends/adaptor/datadog_adaptor.ex Outdated Show resolved Hide resolved
lib/logflare/backends/adaptor/datadog_adaptor.ex Outdated Show resolved Hide resolved
@hauleth hauleth force-pushed the ft/datadog-adaptor branch 7 times, most recently from 610eba5 to 904fb27 Compare April 19, 2024 09:01
@hauleth hauleth force-pushed the ft/datadog-adaptor branch from e7e0946 to 8340e4b Compare April 23, 2024 13:25
@hauleth hauleth requested a review from Ziinc April 23, 2024 13:32
@hauleth hauleth force-pushed the ft/datadog-adaptor branch from 8340e4b to 2255879 Compare April 23, 2024 13:43
Copy link
Contributor

@Ziinc Ziinc left a comment

Choose a reason for hiding this comment

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

Implementation looks good, small nits, good to merge after they're cleared.

For further improvements down the road, we'd need to consider their batch sizes:
Screenshot 2024-04-25 at 1 32 51 AM
we'd likely need configurable max batch size and max batch length for webhook adaptor, similar to what BQ adaptor is doing
will backlog this until their api starts rejecting us

lib/logflare/backends/adaptor/datadog_adaptor.ex Outdated Show resolved Hide resolved
lib/logflare/backends/adaptor/datadog_adaptor.ex Outdated Show resolved Hide resolved
@Ziinc Ziinc force-pushed the ft/datadog-adaptor branch 2 times, most recently from c582a09 to a76d985 Compare April 25, 2024 18:00
Ziinc
Ziinc previously approved these changes Apr 25, 2024
@hauleth hauleth force-pushed the ft/datadog-adaptor branch from cbd8994 to 5afab89 Compare April 28, 2024 20:31
@Ziinc Ziinc dismissed their stale review April 30, 2024 16:44

oudated

@Ziinc Ziinc force-pushed the ft/datadog-adaptor branch from 5afab89 to 4205209 Compare May 9, 2024 08:43
@hauleth
Copy link
Contributor Author

hauleth commented May 9, 2024

@Ziinc what happened with all these commits?

@Ziinc
Copy link
Contributor

Ziinc commented May 9, 2024

Ah I rebased it in the log drain PR

@Ziinc Ziinc changed the base branch from main to feat/log-drains May 9, 2024 16:52
@hauleth
Copy link
Contributor Author

hauleth commented May 9, 2024 via email

@Ziinc Ziinc force-pushed the feat/log-drains branch from d71305b to cfd9394 Compare May 10, 2024 00:21
@Ziinc
Copy link
Contributor

Ziinc commented May 10, 2024

Have pushed up the region changes

Will need to do some more testing before merge

  • manual test for DD drain rule

@Ziinc Ziinc force-pushed the feat/log-drains branch from cfd9394 to c980cfd Compare May 10, 2024 03:07
Base automatically changed from feat/log-drains to main May 10, 2024 03:18
@Ziinc Ziinc force-pushed the ft/datadog-adaptor branch from 366bc1f to c35c37e Compare May 10, 2024 05:13
@hauleth hauleth requested a review from Ziinc May 10, 2024 20:23
@Ziinc Ziinc merged commit 30b7bdb into main May 13, 2024
3 checks passed
@Ziinc Ziinc deleted the ft/datadog-adaptor branch May 13, 2024 12:15
@hauleth
Copy link
Contributor Author

hauleth commented May 13, 2024

💚 💙 💜 💛 ❤️

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