From 8066f8a3a477a1664de643e73b3a5aaa975331b4 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 30 Dec 2024 16:11:14 -0500 Subject: [PATCH] Add slightly more information to the LR2 dispatch traces --- internal/dispatch/graph/graph.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/dispatch/graph/graph.go b/internal/dispatch/graph/graph.go index 039af1a743..94d7838530 100644 --- a/internal/dispatch/graph/graph.go +++ b/internal/dispatch/graph/graph.go @@ -359,7 +359,9 @@ func (ld *localDispatcher) DispatchLookupResources2( ) error { ctx, span := tracer.Start(stream.Context(), "DispatchLookupResources2", trace.WithAttributes( attribute.String("resource-type", tuple.StringCoreRR(req.ResourceRelation)), - attribute.String("subject", tuple.StringCoreONR(req.TerminalSubject)), + attribute.String("subject-type", tuple.StringCoreRR(req.SubjectRelation)), + attribute.StringSlice("subject-ids", req.SubjectIds), + attribute.String("terminal-subject", tuple.StringCoreONR(req.TerminalSubject)), )) defer span.End()