question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable reporting spans for actuator endpoints

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
geoandcommented, Oct 9, 2019

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

1reaction
mariusgigercommented, Oct 13, 2019

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.

spans
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found