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

[serverless] add support for datadog extension #1265

Merged
merged 2 commits into from
Mar 11, 2021

Conversation

DarcyRaynerDD
Copy link
Contributor

What does this PR do?

Adds support for submitting traces via the Datadog Lambda Extension. The Datadog Lambda Extension is a special flavor of the datadog agent, the hooks into the AWS Lambda runtime. Read the draft RFC on tracing with the extension here for more context.

We also change the detection mechanism for the log exporter, only selecting it when we detect a serverless environment AND the extension isn't present. We use a hardcoded file system path to detect the extension, (due to the way the extension API works, the extension can only be at that path). When in serverless mode, we also modify the agent exporter so it flushes it immediately.

Motivation

To supporting tracing via the Datadog Extension automatically

Additional Notes

@DarcyRaynerDD DarcyRaynerDD requested a review from a team as a code owner March 9, 2021 19:26
Copy link
Member

@rochdev rochdev left a comment

Choose a reason for hiding this comment

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

Is the extension on localhost from the Lambda function perspective?

packages/dd-trace/src/exporter.js Outdated Show resolved Hide resolved
@DarcyRaynerDD
Copy link
Contributor Author

Is the extension on localhost from the Lambda function perspective?

Yes, it runs in the same sandbox.

@rochdev rochdev added this to the 0.32.0 milestone Mar 11, 2021
@rochdev rochdev added core enhancement New feature or request labels Mar 11, 2021
@rochdev rochdev merged commit e6acf12 into master Mar 11, 2021
@tlhunter tlhunter deleted the darcy.rayner/lambda-extension-support branch January 19, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants