FetchFlaggedTraces paginates /api/v1/feedback for the user-flagged issue.
func FetchFlaggedTraces(
ctx context.Context,
c *client.Client,
sessionID string,
lastNMinutes int
) []FlaggedTraceFetchFlaggedTraces paginates /api/v1/feedback for the user-flagged issue feedback key on the given session and returns the set of flagged traces. Failures are logged to stderr and surfaced as partial results — callers get whatever was successfully fetched before the error.
If lastNMinutes > 0, only flagged traces created within the window are returned. Otherwise all flagged traces for the session are returned.