Skip to content

chore: fix IDE warnings#4049

Merged
dd-mergequeue[bot] merged 3 commits into
mainfrom
dario.castane/fix-ide-warnings
Oct 22, 2025
Merged

chore: fix IDE warnings#4049
dd-mergequeue[bot] merged 3 commits into
mainfrom
dario.castane/fix-ide-warnings

Conversation

@darccio

@darccio darccio commented Oct 15, 2025

Copy link
Copy Markdown
Member

What does this PR do?

Fixes some IDE warnings that are present in VSCode/Cursor.

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!

@darccio
darccio requested review from a team as code owners October 15, 2025 15:41

@kakkoyun kakkoyun 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.

🥇

@kakkoyun
kakkoyun enabled auto-merge (squash) October 22, 2025 07:38
@pr-commenter

pr-commenter Bot commented Oct 22, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-10-22 15:23:49

Comparing candidate commit c1fbd24 in PR branch dario.castane/fix-ide-warnings with baseline commit 1ece2a3 in branch main.

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

@datadog-official

datadog-official Bot commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: c1fbd24 | Docs | Was this helpful? Give us feedback!

@kakkoyun
kakkoyun disabled auto-merge October 22, 2025 07:58
@darccio

darccio commented Oct 22, 2025

Copy link
Copy Markdown
Member Author

/merge --skip-checks --reason="changes are good"

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Oct 22, 2025

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2025-10-22 15:48:35 UTC ℹ️ Start processing command /merge --skip-checks --reason="changes are good"


2025-10-22 15:48:45 UTC ℹ️ MergeQueue: waiting for PR to be ready

This merge request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2025-10-22 15:52:59 UTC ℹ️ MergeQueue: merge request added to the queue without running the checks

This merge request will be merged without running the pre merge checks for of the following reason: changes are good.


2025-10-22 15:53:10 UTC ℹ️ MergeQueue: This merge request was merged

Warning

This change was merged without running any pre merge CI checks
Reason: changes are good

@darccio

darccio commented Oct 22, 2025

Copy link
Copy Markdown
Member Author

@codex review

@dd-mergequeue
dd-mergequeue Bot merged commit d6f7d92 into main Oct 22, 2025
244 checks passed
@dd-mergequeue
dd-mergequeue Bot deleted the dario.castane/fix-ide-warnings branch October 22, 2025 15:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ddtrace/tracer/option.go
Comment on lines 1085 to 1091
log.Warn("Fail to parse Agent URL: %s", urlErr.Err)
return
}
log.Warn("Fail to parse Agent URL")
log.Warn("Fail to parse Agent URL: %s", err.Error())
return
}
log.Warn("Fail to parse Agent URL: %s", err.Error())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid logging unredacted Agent URL on parse failure

When WithAgentURL receives an invalid URL, the new branch logs err.Error() even after parsing fails (u == nil). url.Parse includes the original URL string in its error output (e.g. parse "http://user:pass@host:abc": invalid port), so this change will leak any embedded credentials or tokens into the application logs whenever a malformed agent URL is supplied. The previous implementation logged a generic message for this path specifically to avoid exposing secrets. Consider logging urlErr.Err or a sanitized message instead of the raw error.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in #4066 cc @genesor @kakkoyun

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.

3 participants