Spring Boot 3 Micrometer Tracing Example - spring-boot

If I understand the answer to this question correctly, Spring Cloud Sleuth will be replaced by Micormeter Tracing with Spring Boot 3. My experiments with Spring Boot 3 milestone 3 to implement tracing have failed so far. Is there an example project somewhere that I can use to guide me.
BTW: Here are my experiments https://github.com/stse/spring-boot-otel. I try to use micrometer tracing and open telemetry to push traces to new relic via Otlp and Grpc.

This blogpost from Spring Team will help to set it up: https://spring.io/blog/2022/10/12/observability-with-spring-boot-3
Also, I have come up with a sample Spring Boot 3 + Micrometer project here - https://github.com/kishorek/java/tree/main/spring-observability-demo.
I am using Zipkin Brave as distributed tracing implementation. I have created a python service consumed by the Spring boot service. Please refer to the README.

Related

Spring Boot 2.4 changes

Within next few months 6th edition of Spring in Action is going to be published.
It is said, it will not contain 3 chapters from 5th edition i.e. Circut Breaker,
Eureka Service-Client Discovery, Eureka Server-Client Configuration.
Instead of this, it will include changes made in Spring Boot 2.4. I have
alread heard that Circut Breaker (Hystrix) is outdated, but I wonder what about
rest, especially omitted chapters ? I noticed that I can not choose ribbon in newest(2.4.3) Spring Boot version, zipkin also differs from earlies ones. What is alternative for ribbon in newest version?
The Spring Cloud project is moving to their own solutions.
Ribbon is replaced by the Spring Cloud Load Balancer, Hysterix by the Spring Cloud Circuit Breaker, Zuul by the Spring Cloud Gateway.
This is a good read, including examples, about this topic: https://piotrminkowski.com/2020/05/01/a-new-era-of-spring-cloud/

How to integrate splunk with spring cloud sleuth in Spring Boot project?

we are developing microservices using spring boot. we want to track the progress of microservices using Spring Cloud Sleuth and wants to show that logs using Splunk on some dashboard etc.
For demo purpose we have are building three services, Service A calls service B which in turns call Service C. we want to trace their calls using slueth and consolidate them in splunk.
how to implement distributed tracing with Sleuth and Splunk?
any help would be greatly appreciated.

Spring Cloud Data Flow - can it be used without spring boot?

Can Spring Cloud Data Flow be used in Spring5 applications - NOT Spring Boot - my current employer seems to view Spring Boot applications as insecure (I've no idea why) in anyway I'd like to try use this stack for an integration project, so is it possible to use it without Spring Boot?
With Spring Cloud Data Flow you can deploy streams, tasks and batches.
This is all based on Spring, Spring Cloud and Spring Boot. Spring Boot is nothing else as a preconfigured Spring stack.
Spring Data Flow is a runitme that usually needs a cloud infrastructure like Kubernets.
I'm not sure if you really are looking for that or more for something like https://spring.io/projects/spring-integration

Couldnt read app configuration in PCF from bitbucket after upgrading spring & java versions

Pivotal Spring cloud config service doesnt work with Java 11 and spring boot 2.1.1.RELEASE and spring web: 5.1.3.RELEASE. I am getting "Error requesting access token". Any pointers to resolve this issue?
I don't believe that Spring Cloud Services is compatible with Spring Boot 2.1 or Java 11 at the time I write this.
Note: Version 2.0.x of the SCS client dependencies is not compatible with Spring Boot 2.1.x.
https://docs.pivotal.io/spring-cloud-services/2-0/common/client-dependencies.html#including-dependencies
I can't provide you any guarantees, but it probably a safe bet that it will support both of those at some point in the future. For now, use Spring Boot 2.0 & Java 8 for best results, or at least to sanity check that things are working as you'd expect.
Hope that helps!

Implement Spring Cloud Sleuth's TracingWebFillter in Spring WebFlux

I have a Spring Boot Reactive application using Functional Endpoints ( Kotlin) that uses Spring Cloud Sleuth. I want to customize the response headers to include the trace id. I looked at the manual and saw the section on using the TraceFilter : 1
I tried to do the same using a TraceWebFilter, but it doesn't expose the constructors. Is there a way to implement this customization when using the Reactive Web Framework.
I am using version 2.0.0.M5 for Spring Cloud Sleuth
Thanks in advance!
Please check out the latest master - we've migrated to Brave. You can write your WebFilter that will delegate to TraceWebFilter. Or you can just copy our TraceWebFilter and alter it in the way you need to.

Resources