INFO Causeline UI: http://localhost:8080/causeline/?token=…
React
Add the React SDK
The provider does nothing in production builds, so it’s safe to leave in. If your dev server runs on another port, proxy /api and /causeline to Spring Boot.
Wrap a handler in trace(). Click the button, open the newest trace in /causeline, and the click, the request, the Spring Boot spans and the state update are on one timeline.
Trace the Next.js server too: route handlers, server actions, rendering and its calls to Spring join the same trace. Start Next.js with CAUSELINE_TOKEN set to the Spring app’s access token.
With Spring AI 2.0 in your app, model calls and vector searches join the timeline with no setup. If your Spring Boot app calls a FastAPI service, add the Python library to put that service in the same trace. LangChain chat calls and retriever runs appear in the RAG panel.
Python spans go to the Causeline in your Spring Boot app, so you need its access token and Causeline 0.1.0-alpha.5 or later. Call the service with a client built from Spring’s RestClient.Builder or WebClient.Builder so the request carries traceparent. The library is off by default and stays off in production.