Skip to content

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

refactor(traces): Remove unused `updateTags` mutation from router (#13269)

Ben Bachem533d0f0029ce
diff --git a/web/src/server/api/routers/traces.ts b/web/src/server/api/routers/traces.ts
index c201c5e9e0..4b857cc377 100644
--- a/web/src/server/api/routers/traces.ts
+++ b/web/src/server/api/routers/traces.ts
@@ -591,53 +591,6 @@ export const traceRouter = createTRPCRouter({
});
}
}),
- updateTags: protectedProjectProcedure
- .input(
- z.object({
- projectId: z.string(),
- traceId: z.string(),
- tags: z.array(z.string()),
- }),
- )
- .mutation(async ({ input, ctx }) => {
- throwIfNoProjectAccess({
- session: ctx.session,
- projectId: input.projectId,
- scope: "objects:tag",
- });
- try {
- await auditLog({
- session: ctx.session,
- resourceType: "trace",
- resourceId: input.traceId,
- action: "updateTags",
- after: input.tags,
- });
-
- const clickhouseTrace = await getTraceById({
- traceId: input.traceId,
- projectId: input.projectId,
- clickhouseFeatureTag: "tracing-trpc",
- });
- if (!clickhouseTrace) {
- logger.error(
- `Trace not found in Clickhouse: ${input.traceId}. Skipping tag update.`,
- );
- throw new TRPCError({
- code: "NOT_FOUND",
- message: "Trace not found",
- });
- }
- clickhouseTrace.tags = input.tags;
- await upsertTrace(convertTraceDomainToClickhouse(clickhouseTrace));
- } catch (error) {
- logger.error("Failed to call traces.updateTags", error);
- throw new TRPCError({
- code: "INTERNAL_SERVER_ERROR",
- });
- }
- }),
-
getAgentGraphData: protectedGetTraceProcedure
.input(
z.object({