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

Switch Lambda Extension Logs Endpoint #8175

Merged
merged 10 commits into from
May 20, 2021

Conversation

nhinsch
Copy link
Contributor

@nhinsch nhinsch commented May 17, 2021

What does this PR do?

Send logs from the Lambda Extension to the Lambda HTTP intake.

Motivation

Use the same endpoint in the Lambda Extension as the Datadog Forwarder.

Describe how to test your changes

Manually tested that logs still reach Datadog.

@nhinsch nhinsch changed the base branch from master to release/lambda-extension-v8 May 17, 2021 23:42
@nhinsch nhinsch marked this pull request as ready for review May 18, 2021 14:28
@nhinsch nhinsch requested review from a team as code owners May 18, 2021 14:28
Copy link
Contributor

@remeh remeh left a comment

Choose a reason for hiding this comment

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

Since we don't want the Serverless Agent to use something else than the HTTP endpoints, I think that would be a better implementation if we had BuildServerlessHTTPEndpoints() directly called from pkg/logs/logs.go with a if serverless. It would have many benefits:

  • can't use TCP endpoints from the Serverless Agent through a configuration change
  • no propagation of the serverless flag in the config package
  • no signature change of the BuildEndpoints function so no changes in the security nor cluster agent (but that's a bonus)

Please not that it means that we would have to sanitize the API key in BuildServerlessHTTPEndpoints as well.

WDYT?

Copy link
Contributor

@remeh remeh left a comment

Choose a reason for hiding this comment

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

👍

@nhinsch nhinsch merged commit 58744c7 into release/lambda-extension-v8 May 20, 2021
@nhinsch nhinsch deleted the ngh/intake-endpoint branch May 20, 2021 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants