Skip to content
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

Remove spans with ec2 metadata ip address from metrics #1015

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

harrryr
Copy link
Contributor

@harrryr harrryr commented Feb 7, 2025

Issue #, if available:
ADOT SDK resource detectors by default have enabled a few AWS resource detector which will call EC2 metadata API endpoints. These activities have been captured by auto-instrumentation and generated AppSignals metrics.

These calls should be present in traces, but not in metrics.

Description of changes:
Suppress AwsSpanMetricsProcessor from generating metrics when the RemoteService points to 169.254.169.254

Testing
Deployed two EC2 instance with Java sample application and ADOT Java

  • sample-application-2025-02-06-test: ADOT Java with changes in this PR
  • sample-application-2025-02-06: Public latest ADOT Java

Traces:
Present from both EC2 instance
image
image

Metrics:
Present only for sample-application-2025-02-06:
image

Logs:
Present only for sample-application-2025-02-06:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@harrryr harrryr requested a review from a team as a code owner February 7, 2025 00:33
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.

1 participant