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

feat: Remove extension hello check as it's redundant #516

Merged
merged 4 commits into from
Mar 18, 2024

Conversation

astuyve
Copy link
Contributor

@astuyve astuyve commented Mar 18, 2024

What does this PR do?

Checking the file presence is enough, start order is enforced by the lambda runtime.

Motivation

Testing Guidelines

Additional Notes

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

@astuyve astuyve requested a review from a team as a code owner March 18, 2024 14:27
@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.95%. Comparing base (9c44eab) to head (859d234).

❗ Current head 859d234 differs from pull request most recent head d892ff3. Consider uploading reports for the commit d892ff3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #516      +/-   ##
==========================================
- Coverage   82.09%   81.95%   -0.14%     
==========================================
  Files          54       54              
  Lines        2212     2206       -6     
  Branches      513      512       -1     
==========================================
- Hits         1816     1808       -8     
- Misses        332      334       +2     
  Partials       64       64              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@duncanista duncanista left a comment

Choose a reason for hiding this comment

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

LGTM

@purple4reina
Copy link
Contributor

So. I know the extension specifically uses the call to Hello to determine if there's a tracing layer present. See https://github.com/DataDog/datadog-agent/blob/11e8ea8b5455530ba8afa8ef1831d179c5523479/pkg/serverless/daemon/routes.go#L29

@astuyve
Copy link
Contributor Author

astuyve commented Mar 18, 2024

We do, but the library never calls start-invocation, so I assume the call to enrichInferredSpan() never happens or happens but the result is never used. source.

We can see with this build, there are no duplicate spans. And we have made this change in Python already.

@purple4reina
Copy link
Contributor

We do, but the library never calls start-invocation, so I assume the call to enrichInferredSpan() never happens or happens but the result is never used. source.

We can see with this build, there are no duplicate spans. And we have made this change in Python already.

Ah, yes I see now. Thanks for the explanation. We can probably just go ahead and delete that code from the extension then yeah?

@astuyve astuyve merged commit 904d2e9 into main Mar 18, 2024
25 checks passed
@astuyve astuyve deleted the aj/remove-extension-hello-check branch March 18, 2024 19:52
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.

4 participants