Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/gprofiler/backend/routers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

from backend.routers import (
api_key_routes,
dynamicprofiling,
filters_routes,
flamegraph_routes,
healthcheck_routes,
Expand All @@ -33,6 +34,10 @@
router.include_router(healthcheck_routes.router, prefix="/v2/health_check", tags=["agent"])
router.include_router(flamegraph_routes.router, prefix="/flamegraph", tags=["flamegraph"])
router.include_router(metrics_routes.router, prefix="/metrics", tags=["metrics"])
# Dynamic Profiling - New endpoint (preferred)
router.include_router(dynamicprofiling.router, prefix="/dynamicprofiling", tags=["dynamicprofiling"])
# Dynamic Profiling - Backward compatibility (legacy agents using /metrics prefix)
router.include_router(dynamicprofiling.router, prefix="/metrics", tags=["dynamicprofiling-legacy"])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this may impact /metrics logic too, can you make sure this test cases is covered

router.include_router(installations_routes.router, prefix="/installations", tags=["app"])
router.include_router(api_key_routes.router, prefix="/api_key", tags=["auth"])
router.include_router(profiles_routes.router, prefix="/v2/profiles", tags=["agent"])
Expand Down
Loading
Loading