Skip to content

[Resources.AWS] Remove unused code#3964

Merged
martincostello merged 1 commit intoopen-telemetry:mainfrom
martincostello:remove-unused-code
Mar 19, 2026
Merged

[Resources.AWS] Remove unused code#3964
martincostello merged 1 commit intoopen-telemetry:mainfrom
martincostello:remove-unused-code

Conversation

@martincostello
Copy link
Copy Markdown
Member

Changes

Remove redundant check for an ARN prefix spotted while working on #3867.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

Remove redundant check for an ARN prefix.
@github-actions github-actions bot added the comp:resources.aws Things related to OpenTelemetry.Resources.AWS label Mar 17, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.95%. Comparing base (129fa90) to head (6bd5757).
⚠️ Report is 21 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3964      +/-   ##
==========================================
- Coverage   71.95%   71.95%   -0.01%     
==========================================
  Files         447      447              
  Lines       17817    17815       -2     
==========================================
- Hits        12820    12818       -2     
  Misses       4997     4997              
Flag Coverage Δ
unittests-Resources.AWS 74.34% <ø> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/OpenTelemetry.Resources.AWS/AWSECSDetector.cs 88.42% <ø> (-0.24%) ⬇️
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@martincostello martincostello marked this pull request as ready for review March 17, 2026 15:45
@martincostello martincostello requested a review from a team as a code owner March 17, 2026 15:46
Copilot AI review requested due to automatic review settings March 17, 2026 15:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes a redundant (and effectively dead) ARN-prefix check in the AWS ECS resource detector, simplifying metadata v4 attribute extraction in OpenTelemetry.Resources.AWS.

Changes:

  • Deleted an unused clusterArn.StartsWith("arn:") conditional block that computed (but did not use) a baseArn value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@martincostello martincostello added this pull request to the merge queue Mar 19, 2026
Merged via the queue into open-telemetry:main with commit 9650500 Mar 19, 2026
76 checks passed
@martincostello martincostello deleted the remove-unused-code branch March 19, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:resources.aws Things related to OpenTelemetry.Resources.AWS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants