Link trace to logs need to specify the search time range
When going from trace to logs, we take the user to the logs list page and search for the selected trace-id. This might not always produce results, because the default search period is 1h
and the trace might be older than that.
One option is to either expand the search range to 30days ( can there be logs older than that though? ) or set the query time range around the trace start time ( e.g. [ts-12h, ts+12h] )
How to reproduce:
- Go to https://gitlab.com/gitlab-org/opstrace/sandbox/otel-demo/-/tracing/9a30ad49-ca60-0d3f-e073-3b6035ec643f
- Select "View Logs"
- Note no logs show and the default 1h
- Expand the time range ( e.g. 30days ) and confirm the logs show up
Edited by Daniele Rossetti