You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove spans with ec2 metadata ip address from metrics (#1015)
*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


*Metrics*:
Present only for `sample-application-2025-02-06`:

*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.
Copy file name to clipboardExpand all lines: awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/AwsSpanMetricsProcessor.java
Copy file name to clipboardExpand all lines: awsagentprovider/src/test/java/software/amazon/opentelemetry/javaagent/providers/AwsSpanMetricsProcessorTest.java
0 commit comments