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 #323

Merged
merged 2 commits into from
Feb 13, 2025

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.

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

Testing:
Tested using Java Adot: aws-observability/aws-otel-java-instrumentation#1015

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@harrryr harrryr requested a review from a team as a code owner February 7, 2025 18:14
@harrryr harrryr force-pushed the ec2-metadata-api-span-remove branch 5 times, most recently from 4cbd58e to 96e4be1 Compare February 11, 2025 00:05
@harrryr harrryr force-pushed the ec2-metadata-api-span-remove branch from 96e4be1 to 7822996 Compare February 13, 2025 21:46
@harrryr harrryr merged commit 0c3ade0 into aws-observability:main Feb 13, 2025
12 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.

2 participants