unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
4.24k stars 505 forks source link

Provide the ability to find / retrieve a request_id using an identity or key_id #2078

Open perkinsjr opened 2 months ago

perkinsjr commented 2 months ago

Preliminary Checks

Is your feature request related to a problem? Please describe.

When users are debugging an issue sometimes they don't log our request_ids to their own systems. When working with a large workspace this becomes incredibly problematic for us as well as the end user trying to get support.

Describe the solution

Make sure the request_id is available requests in the dashboard so that users can go into the dashboard and provide us a request_id

Describe alternatives you have considered (if any)

Provide a debugging API route, that returns last X requests

Create a debugging tool for support that can easily give last X transactions based on an indentiifer and provide all data from relevant systems

Additional context

No response

linear[bot] commented 2 months ago

ENG-1319 Provide the ability to find / retrieve a request_id using an identity or key_id

chronark commented 1 month ago

With clickhouse we're going to log every http request, so we can show request logs in the dashboard

reference: https://github.com/unkeyed/unkey/blob/main/apps/agent/pkg/clickhouse/schema/001_create_requests_table.sql