Skip to content

[APM] Enable stats computation by default#3548

Merged
darccio merged 4 commits into
mainfrom
ichinaski/css-default-enabled
Jun 16, 2025
Merged

[APM] Enable stats computation by default#3548
darccio merged 4 commits into
mainfrom
ichinaski/css-default-enabled

Conversation

@ichinaski

Copy link
Copy Markdown
Contributor

What does this PR do?

Changed default value of DD_TRACE_STATS_COMPUTATION_ENABLED from false to true.

Client-Side Stats will be enabled by default on dd-trace-go. This feature has been tested on internal production systems, and is now ready to be on by default.

Motivation

https://docs.google.com/document/d/1N425X-VWaCqJ8bpwoOJ0NnZgLbde-My_KbNzQeAuOWg/edit?tab=t.0#heading=h.8d3o7vtyu1y1

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • New code is free of linting errors. You can check this by running golangci-lint run locally.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

Changed default value of DD_TRACE_STATS_COMPUTATION_ENABLED from false to true.

Client-Side Stats will be enabled by default on dd-trace-go. This
feature has been tested on internal production systems, and is now ready
to be on by default.
@ichinaski
ichinaski requested a review from a team as a code owner May 26, 2025 13:46
@pr-commenter

pr-commenter Bot commented May 26, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-06-16 08:05:48

Comparing candidate commit aea9208 in PR branch ichinaski/css-default-enabled with baseline commit 5aaddf4 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics.

@darccio
darccio merged commit 381ae30 into main Jun 16, 2025
288 of 289 checks passed
@darccio
darccio deleted the ichinaski/css-default-enabled branch June 16, 2025 08:34
mtoffl01 pushed a commit that referenced this pull request Jun 23, 2025
jchrostek-dd added a commit to DataDog/datadog-lambda-go that referenced this pull request Apr 15, 2026
…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
jchrostek-dd added a commit to DataDog/datadog-lambda-go that referenced this pull request Apr 20, 2026
…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
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