Skip to content

Commit

Permalink
Merge pull request #2183 from josephschorr/additional-lr2-tracing
Browse files Browse the repository at this point in the history
Add slightly more information to the LR2 dispatch traces
  • Loading branch information
josephschorr authored Dec 30, 2024
2 parents fc54a72 + 8066f8a commit 4112047
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/dispatch/graph/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4112047

Please sign in to comment.