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

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.

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:17
@harrryr harrryr force-pushed the ec2-metadata-api-span-remove branch from 50f8189 to 3daa168 Compare February 7, 2025 18:42
@harrryr harrryr force-pushed the ec2-metadata-api-span-remove branch from 3daa168 to fad2e58 Compare February 7, 2025 18:43
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