Skip to main content

ui_app

Function ui_app 

Source
pub fn ui_app(state: StateRef, base_path: &str) -> Router
Expand description

Create a new axum::Router for the Jaeger UI to visualize the traces stored in the given StateRef.

The base_path is used for the application to load static assets correctly. It should start and end with /. For example,

  • if the application is served at http://localhost:3000/, then base_path should be /.
  • if the application is served at http://localhost:3000/trace/, then base_path should be /trace/.