thanos-io / thanos

Highly available Prometheus setup with long term storage capabilities. A CNCF Incubating project.
https://thanos.io
Apache License 2.0
13.08k stars 2.09k forks source link

Force Tracing : get a trace ID we can search for when this is forced. #6774

Open Vanshikav123 opened 1 year ago

Vanshikav123 commented 1 year ago

Is your proposal related to a problem?

As we got the Force Tracing feature enabled we should also have a feature such that we can get the traceID when we search for when this is forced

Describe the solution you'd like

we can use the TraceId header and upgrade the force Tracing checkbox such that if it is enabled then on hovering on it we can get the traceID else a message that enable checkbox to get the TraceID

Vanshikav123 commented 1 year ago

Hello @yeya24 can I get some suggestions on this issue?

yeya24 commented 1 year ago
    // traceIdResponseHeader is a response header name that stores trace ID.
    traceIDResponseHeader = "X-Thanos-Trace-Id"

We set X-Thanos-Trace-Id header in the query response. You can get the header value and display it in the UI.

Vanshikav123 commented 1 year ago
  // traceIdResponseHeader is a response header name that stores trace ID.
  traceIDResponseHeader = "X-Thanos-Trace-Id"

We set X-Thanos-Trace-Id header in the query response. You can get the header value and display it in the UI.

want do you think how should it be displayed in the UI should i do it in the way i provided the solution or you have any other suggestions ?

yeya24 commented 1 year ago

@Vanshikav123 I don't have much to share. You can think about it and open a pr for feedback

oluwashina100 commented 6 months ago

Trace-Id: b46e9aa0-775c-46a8-a60a-2e30e3f6eef7)