Skip to content

Read default env from trace-agent info#3844

Merged
dd-mergequeue[bot] merged 1 commit into
mainfrom
ichinaski/read-agent-default-env
Aug 6, 2025
Merged

Read default env from trace-agent info#3844
dd-mergequeue[bot] merged 1 commit into
mainfrom
ichinaski/read-agent-default-env

Conversation

@ichinaski

Copy link
Copy Markdown
Contributor

What does this PR do?

DefaultEnv from agent should be read from the /info endpoint, and stored as the default env when no explicit env exists on the tracer.

Motivation

When no env exists on the tracer, we may get unknown-env for aggregated stats.

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 ./scripts/lint.sh 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!

DefaultEnv from agent should be read from the `/info` endpoint, and
stored as the default env when no explicit env exists on the tracer.
@ichinaski
ichinaski requested a review from a team as a code owner August 4, 2025 10:58
@pr-commenter

pr-commenter Bot commented Aug 4, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-08-04 11:13:57

Comparing candidate commit b10f138 in PR branch ichinaski/read-agent-default-env with baseline commit f9a855f in branch main.

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

@darccio darccio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@ichinaski

Copy link
Copy Markdown
Contributor Author

/merge

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Aug 6, 2025

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2025-08-06 06:39:20 UTC ℹ️ Start processing command /merge


2025-08-06 06:39:25 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 13m (p90).


2025-08-06 06:53:53 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue
dd-mergequeue Bot merged commit 455bd92 into main Aug 6, 2025
225 checks passed
@dd-mergequeue
dd-mergequeue Bot deleted the ichinaski/read-agent-default-env branch August 6, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants