Disable reporting spans for actuator endpoints
See original GitHub issueHi guys,
Reposting this here.
When using Opentracing with Jaeger for Spring Cloud Gateway with actuator endpoints enabled (e.g. /actuator/health for K8s readiness probe), all calls to the actuator endpoints produce a span. Is there a way to disable this behaviour?
Config:
<dependency>
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-spring-jaeger-cloud-starter</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-spring-cloud-starter</artifactId>
<version>0.3.2</version>
</dependency>
Cheers, Marius
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Production-ready Features - Spring
Actuator endpoints let you monitor and interact with your application. ... Disabled endpoints are removed entirely from the application context.
Read more >Spring Boot Actuator: Health check, Auditing, Metrics ...
You can enable or disable an actuator endpoint by setting the property management.endpoint.<id>.enabled to true or false (where id is the ...
Read more >Spring Boot Actuator - Cannot disable /info endpoint
I tried disabling all actuator endpoints for production environment in application.yml configuration file: endpoints.enabled: false.
Read more >Spring Boot Admin Reference Guide - GitHub Pages
Disables CSRF-Protection for the actuator endpoints. In case you use the Spring Boot Admin Client, it needs the credentials for accessing the ...
Read more >Wavefront for Spring Boot | Tanzu Observability Documentation
The spans in your applications are automatically converted to the Wavefront ... If you have a web app, you can expose the Wavefront...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Endpoints can be manually excluded as well, see: https://github.com/opentracing-contrib/java-spring-web/blob/master/opentracing-spring-web-starter/src/test/resources/application-test.yml#L22
But definitely the actuator endpoints should not be taken into account
Thanks @pavolloffay and @geoand for the replies.
Per default, the actuator health endpoint is already ignored in the skip pattern, which is fine. However, the queries for the healthiness of a database (e.g. Mysql or Mongo) produce a span, which are invoked as part of the request to
/actuator/health
.