fix: Disable client-side trace stats computation in Lambda#4471
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files
🚀 New features to boost your workflow:
|
BenchmarksBenchmark execution time: 2026-02-24 13:24:47 Comparing candidate commit 2383571 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 152 metrics, 9 unstable metrics.
|
26d636c
into
main
…head in Lambda Stats computation was enabled by default in dd-trace-go v2.1.0 (DataDog/dd-trace-go#3548). When extension v91+ advertises /v0.6/stats support in its /info response, tracer.Flush() makes a synchronous HTTP POST to http://127.0.0.1:8126/v0.6/stats before returning, adding 33-59ms per warm invocation. This fix disables stats computation at the tracer level so it is never posted from Lambda, mirroring the identical fix already applied to the dd-trace-go contrib Lambda wrapper in DataDog/dd-trace-go#4471 (APMSVLS-389). Resolves: SLES-2790
…head in Lambda (#244) Stats computation was enabled by default in dd-trace-go v2.1.0 (DataDog/dd-trace-go#3548). When extension v91+ advertises /v0.6/stats support in its /info response, tracer.Flush() makes a synchronous HTTP POST to http://127.0.0.1:8126/v0.6/stats before returning, adding 33-59ms per warm invocation. This fix disables stats computation at the tracer level so it is never posted from Lambda, mirroring the identical fix already applied to the dd-trace-go contrib Lambda wrapper in DataDog/dd-trace-go#4471 (APMSVLS-389). Resolves: SLES-2790
https://datadoghq.atlassian.net/browse/APMSVLS-389
What does this PR do?
Motivation
In Lambda environments:
Reviewer's Checklist
make lintlocally.make testlocally.make generatelocally.make fix-moduleslocally.Unsure? Have a question? Request a review!