feat(lambda): adopt mini agent for Lambda Lite environments#7584
feat(lambda): adopt mini agent for Lambda Lite environments#7584litianningdatadog merged 1 commit intomasterfrom
Conversation
Overall package sizeSelf size: 5.47 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7584 +/- ##
==========================================
- Coverage 80.31% 80.28% -0.03%
==========================================
Files 733 733
Lines 31546 31546
==========================================
- Hits 25337 25328 -9
- Misses 6209 6218 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7584 +/- ##
==========================================
- Coverage 74.25% 74.25% -0.01%
==========================================
Files 769 769
Lines 36068 36068
==========================================
- Hits 26783 26782 -1
- Misses 9285 9286 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d417c26 to
f8c05c5
Compare
BenchmarksBenchmark execution time: 2026-04-07 20:30:27 Comparing candidate commit d5e4778 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 230 metrics, 30 unstable metrics. |
f8c05c5 to
80a7aee
Compare
|
✨ Fix all issues with BitsAI or with Cursor
|
80a7aee to
4a08a38
Compare
4a08a38 to
0c3d229
Compare
0c3d229 to
9300fc1
Compare
9300fc1 to
6b56e4c
Compare
rochdev
left a comment
There was a problem hiding this comment.
Just a small nit on a comment but otherwise LGTM.
…gent is present Adds DATADOG_MINI_AGENT_PATH constant (/tmp/datadog/mini_agent_ready) to detect Lambda Lite + mini agent environments. In that setup: - flushInterval is left at its default (batching is safe; flushInterval=0 would saturate the 8-request exporter limit) - The agent exporter is selected instead of the log exporter, same as when the Datadog Lambda Extension is present
6b56e4c to
d5e4778
Compare
…gent is present (#7584) Adds DATADOG_MINI_AGENT_PATH constant (/tmp/datadog/mini_agent_ready) to detect Lambda Lite + mini agent environments. In that setup: - flushInterval is left at its default (batching is safe; flushInterval=0 would saturate the 8-request exporter limit) - The agent exporter is selected instead of the log exporter, same as when the Datadog Lambda Extension is present
…gent is present (#7584) Adds DATADOG_MINI_AGENT_PATH constant (/tmp/datadog/mini_agent_ready) to detect Lambda Lite + mini agent environments. In that setup: - flushInterval is left at its default (batching is safe; flushInterval=0 would saturate the 8-request exporter limit) - The agent exporter is selected instead of the log exporter, same as when the Datadog Lambda Extension is present
https://datadoghq.atlassian.net/browse/SVLS-8571
What does this PR do?
Introduces DATADOG_MINI_AGENT_PATH (/tmp/datadog/mini_agent_ready) as a sentinel constant to detect Lambda Lite + mini agent environments, and adjusts two behaviours when that path is present:
This change depends on this serverless-components PR
Motivation
Lambda Lite runs the tracer in a persistent server process alongside a mini agent, rather than the ephemeral invocation model of standard Lambda. The existing Lambda fast-path assumptions (flushInterval = 0, log exporter fallback) are counter-productive in this model and need to be gated on the absence of the mini agent ready file.
Additional Notes