aws-otel-java-instrumentation icon indicating copy to clipboard operation
aws-otel-java-instrumentation copied to clipboard

Ignore tracing health checks

Open mrewak opened this issue 9 months ago • 3 comments

I'd like to ignore sending traces for health check paths or even all actuator paths. My spring boot app with java instrumentation and deployed as ECS service generates many X-Ray traces unnecessary (at least for me). We are using aws-observability/aws-otel-collector deployed as a central gateway as a ECS service.

Provide config option for the agent to ignore some of the paths or other solution to the issue:

  • ignore health paths in aws-otel-collector (?)
  • ignore health paths on the X-Ray side (?)

I've found https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/1060 and probably it can be the solution but it is fixed/implemented in the latest opentelemetry java agent but not in aws-otel-java-instrumentation

mrewak avatar Jan 21 '25 08:01 mrewak