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

ddtrace/tracer: noDebugStack config reports to telemetry under distinct key debug_stack_enabled #2798

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

mtoffl01
Copy link
Contributor

@mtoffl01 mtoffl01 commented Jul 25, 2024

What does this PR do?

The noDebugStack tracer configuration now reports telemetry under the key debug_stack_enabled.
Note: New debug_stack_enabled field added to telemetry backend here: https://github.com/DataDog/dd-go/pull/143865

Motivation

Prior to this change, the noDebugStack config was incorrectly reporting telemetry under the key trace_debug_enabled.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • [n/a] System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • [n/a] There is a benchmark for any new code, or changes to existing code.
  • [n/a ] If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • [n/a] 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!

@mtoffl01 mtoffl01 marked this pull request as ready for review July 25, 2024 20:20
@mtoffl01 mtoffl01 requested a review from a team as a code owner July 25, 2024 20:20
@mtoffl01 mtoffl01 changed the title Correct telemetry report for noDebugStack configuration ddtrace/tracer: noDebugStack tracer configuration reports to telemetry under distinct key debug_stack_enabled Jul 25, 2024
@mtoffl01 mtoffl01 changed the title ddtrace/tracer: noDebugStack tracer configuration reports to telemetry under distinct key debug_stack_enabled ddtrace/tracer: noDebugStack config reports to telemetry under distinct key debug_stack_enabled Jul 25, 2024
@pr-commenter
Copy link

pr-commenter bot commented Jul 25, 2024

Benchmarks

Benchmark execution time: 2024-07-29 17:47:37

Comparing candidate commit 40a189a in PR branch mtoff/debugstack-telemetry with baseline commit ec824d8 in branch main.

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

Copy link
Member

@darccio darccio left a comment

Choose a reason for hiding this comment

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

Approving as it's good to go. Just check my comment about the test, it's a minor issue.

Comment on lines 46 to 47
telemetry.Check(t, telemetryClient.Configuration, "trace_debug_enabled", true)
telemetry.Check(t, telemetryClient.Configuration, "trace_debug_enabled", true)
Copy link
Member

Choose a reason for hiding this comment

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

@mtoffl01 Do we need to duplicate this check?

@mtoffl01 mtoffl01 marked this pull request as draft July 29, 2024 14:10
@mtoffl01
Copy link
Contributor Author

Moving to draft as discussions are still ongoing about how to name the telem field

@mtoffl01 mtoffl01 marked this pull request as ready for review July 29, 2024 17:25
@mtoffl01 mtoffl01 merged commit 70fa492 into main Jul 29, 2024
164 checks passed
@mtoffl01 mtoffl01 deleted the mtoff/debugstack-telemetry branch July 29, 2024 17: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.

2 participants