-
Notifications
You must be signed in to change notification settings - Fork 414
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
fix(ci_visibility): get default environment from agent when DD_ENV is not set #11478
base: main
Are you sure you want to change the base?
fix(ci_visibility): get default environment from agent when DD_ENV is not set #11478
Conversation
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11478 +/- ##
===========================================
- Coverage 14.09% 3.60% -10.50%
===========================================
Files 1536 1487 -49
Lines 133599 128946 -4653
===========================================
- Hits 18829 4643 -14186
- Misses 114770 124303 +9533 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
/merge |
Devflow running:
|
BenchmarksBenchmark execution time: 2024-11-21 14:19:21 Comparing candidate commit cc649bc in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 388 metrics, 2 unstable metrics. |
This fixes an issue where, if we are in EVP mode, and the agent has a custom default environment set (eg: using
DD_APM_ENV
), butDD_ENV
is not set in the environment, we would incorrectly set the environment toNone
.Instead, we now query the agent's info page and use the
config.default_env
key to choose the environment value.In somewhat-related changes, we now also explicitly default the environment to
"none"
in agentless mode if it is not set by the user, whereas before we would use aNone
value which would serialize tonull
, and we would rely on the backend to perform thenull
->"none"
change. Since the backend was already enforcing this behavior, it should be a no-op from the user's perspective.Checklist
Reviewer Checklist