Add tests for DD_DYNAMIC_INSTRUMENTATION_ENABLED env var precedence over RC#5952
Draft
Add tests for DD_DYNAMIC_INSTRUMENTATION_ENABLED env var precedence over RC#5952
Conversation
Contributor
|
|
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
2806667 to
6c9a51e
Compare
…ver RC Add two complementary test suites to verify that DD_DYNAMIC_INSTRUMENTATION_ENABLED environment variable takes precedence over Remote Config's dynamic_instrumentation_enabled setting: 1. Configuration-level test (parametric): - test_dynamic_instrumentation_env_precedence - Verifies tracer config system respects env var precedence via telemetry - Tests 3 scenarios: env not set, env=true, env=false 2. Functional-level tests (debugger): - Test_Debugger_InProduct_Enablement_DI_Env_Precedence_True - Test_Debugger_InProduct_Enablement_DI_Env_Precedence_False - Verifies DI actually functions based on precedence using probe emission Expected behavior: - When env not set: RC enables DI ✓ - When env=true: DI already enabled, no change ✓ - When env=false: RC cannot enable DI (local precedence) ✓
6c9a51e to
d111fee
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
Currently, there are no system tests verifying that the
DD_DYNAMIC_INSTRUMENTATION_ENABLEDenvironment variable takes precedence over Remote Config'sdynamic_instrumentation_enabledsetting.Changes
Added two complementary test suites to verify
DD_DYNAMIC_INSTRUMENTATION_ENABLEDenv var precedence:1. Configuration-level test (parametric):
test_dynamic_instrumentation_env_precedencetoTestDynamicConfigTracingEnabledclass2. Functional-level tests (debugger):
test_debugger_inproduct_enablement.py:Test_Debugger_InProduct_Enablement_DI_Env_Precedence_TrueTest_Debugger_InProduct_Enablement_DI_Env_Precedence_FalseExpected behavior verified:
Workflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present