-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Spring Boot 3.0 (RC2) Observability Questions #33275
Comments
@goafabric as mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Thanks for trying the RC but asking questions here isn't the right thing to do. Please chat with the community on Gitter or ask your questions on StackOverflow. |
You mean with Sleuth, you got a trace spanning both applications and with SB3 this doesn't work? If so, this sounds like a bug. |
While questions don't belong in the issue tracker, I am going to re-open this as it's not clear to me if there's a bug here of it the documentation's lacking.
The documentation describes the automatic instrumentation of |
@wilkinsona |
Description Let me explain: Two different versions and two different sections ... but it think that is partly the price of using a non GA version. That is stated very "weak" .. at least if you are used to Spring Boot 2.x So what did I do up until now What actually has to be done Yes stated .. and yes .. now it all makes sense .. because creating a "new RestTemplateBuilder" But Option number 1 worked perfectly finde in Boot 2.7.5 + sleuth ... Proposal |
So I think the biggest point is solved now for me. |
As documented here, the same was true in Boot 2.x if you wanted metrics from
Spring Security's documentation describes how to configure Spring Security's observability, including a section on disabling it. |
ok thank you |
In the context of a Spring Boot application, I think contributing an |
In the wiki you can read this
|
Disabling works in the case of name.startsWith("spring.security") I guess the expected return type of spring security is not Compatible with the Noop.
|
@goafabric Could you raise an issue on Spring Security for that please? |
one thing concerning the migration guide, Because when combining boot 2.x with sleuth + 3.x with micrometer management.tracing.propagation.type: "B3" I think the same thing will be true when using istio |
@marcingrzejszczak What do you think about the comment above? |
It's written there in the same sentence that we have migrated from B3 to W3C
I will however write how to do the migration. You should set in Boot 2.x app |
Intro
I've been working with spring sleuth Zipkin in Spring Boot 2.x in Combination with Jaeger
This helped me to get connected Spans between two Spring Boot Applications, via RestTemplate
Now wit Boot 3.0 i have some puzzeling questions i cannot figure out.
I already read these two articles/documentation:
-https://spring.io/blog/2022/10/12/observability-with-spring-boot-3
As well as reading the code
But as I am now stuck for 2 weeks, it would be nice if someone can help me out here.
As dependencies I am using the followling, but also tried the "otel" variants
implementation 'io.micrometer:micrometer-tracing-bridge-brave'
implementation 'io.zipkin.reporter2:zipkin-reporter-brave'
Question 1
With Spring Security enabled (and Cicrcuitbreaker) a lot of additional Info concerning the Filterhchains is added. (Image attached)
Is there a way to disable this ?
Question2
I "guess" in AOT mode observability has become a compile time property. (got this from the latest Devoxx Video)
In the veins of it's either enabled or disabled during compile time and not modifiable during runtime ?
Question 3
While with Sleuth, Boot 2.x + Resttemplate i get interconnected spans between my two applications.
This is not working with Boot 3.x ... I just get 2 seperated spans for each of my Applications.
Following the documentation above it is a little unclear for me if resttemplate will automatically get instrumented
and create the spans .. like it is was done in the past .. or not.
Thank you
The text was updated successfully, but these errors were encountered: