Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: remove trailing /index on span names after next upgrade (#12730)

Steffen Schmitz3dfa5226a572
diff --git a/web/src/observability.config.ts b/web/src/observability.config.ts
index c5fa632685..f47413a54d 100644
--- a/web/src/observability.config.ts
+++ b/web/src/observability.config.ts
@@ -49,6 +49,9 @@ const sdk = new NodeSDK({
if (path.startsWith("/_next/static")) {
path = "/_next/static/*";
}
+ if (path.endsWith("/index")) {
+ path = path.slice(0, -6);
+ }
span.updateName(`${req?.method} ${path}`);
span.setAttribute("http.route", path);
},