Skip to content

AWS cloud metadata decoration#1300

Merged
mariomac merged 22 commits into
open-telemetry:mainfrom
mariomac:aws-metadata
Feb 19, 2026
Merged

AWS cloud metadata decoration#1300
mariomac merged 22 commits into
open-telemetry:mainfrom
mariomac:aws-metadata

Conversation

@mariomac
Copy link
Copy Markdown
Contributor

@mariomac mariomac commented Feb 13, 2026

Checklist

  • AWS metadata
  • Remove old "host-id" fetching code
  • Integration tests AWS

The code also includes some methods for retrieving GCP and Azure metadata, but they will be properly tested in other PRs, to keep the focus of this PR.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 13, 2026

Codecov Report

❌ Patch coverage is 59.90783% with 87 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.57%. Comparing base (0bf4f8f) to head (9e9fc7a).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pkg/appolly/meta/meta_node_kube.go 14.81% 23 Missing ⚠️
pkg/appolly/meta/meta_node.go 74.66% 19 Missing ⚠️
pkg/appolly/meta/meta_node_cloud.go 68.29% 12 Missing and 1 partial ⚠️
pkg/appolly/meta/meta_node_linux.go 54.16% 9 Missing and 2 partials ⚠️
pkg/export/prom/prom.go 18.18% 8 Missing and 1 partial ⚠️
pkg/export/otel/metrics_internal.go 0.00% 7 Missing ⚠️
pkg/export/otel/metrics.go 70.00% 2 Missing and 1 partial ⚠️
pkg/export/otel/otelcfg/common.go 85.71% 1 Missing ⚠️
pkg/instrumenter/instrumenter.go 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1300       +/-   ##
===========================================
+ Coverage   19.63%   43.57%   +23.93%     
===========================================
  Files         239      307       +68     
  Lines       27971    32886     +4915     
===========================================
+ Hits         5493    14331     +8838     
+ Misses      21831    17636     -4195     
- Partials      647      919      +272     
Flag Coverage Δ
integration-test 21.75% <60.23%> (-0.05%) ⬇️
integration-test-arm 0.00% <0.00%> (ø)
integration-test-vm-x86_64-5.15.152 0.00% <0.00%> (ø)
integration-test-vm-x86_64-6.10.6 0.00% <0.00%> (ø)
k8s-integration-test 2.36% <0.00%> (-0.01%) ⬇️
oats-test 0.00% <0.00%> (ø)
unittests 44.36% <69.00%> (?)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mariomac mariomac changed the title Cloud host metadata decoration ç host metadata decoration Feb 18, 2026
@mariomac mariomac changed the title ç host metadata decoration AWS cloud metadata decoration Feb 18, 2026
@mariomac mariomac marked this pull request as ready for review February 18, 2026 09:44
@mariomac mariomac requested a review from a team as a code owner February 18, 2026 09:44
Copy link
Copy Markdown
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

Very cool! I only had one small comment about the logging.

Comment thread pkg/appolly/meta/meta_node_cloud.go Outdated
resource, err := detector.Detect(ctx)
// none of the errors from the ec2 detect are retriable, so we just log them.
if err != nil {
log.Debug("failed to detect AWS EC2 metadata", "error", err)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this is common for all cloud vendors, perhaps it shouldn't say AWS?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ohh good catch. I refactored this part to make it generic and I forgot to change some EC2 references. Thanks!

@mariomac mariomac merged commit ce8adf4 into open-telemetry:main Feb 19, 2026
73 of 74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants