How to turn on grafana to profile traces

I don’t know how to turn this on, How to set ProfilingIntegration to true

Hi, I think it’s something you should configure in your Tempo datasource, since it’s like a link from tempo to profile’s storage.

no, The otel-profiling-go package is included in the code of the go client, so Grafana needs to have this configuration turned on.

I’m 80% sure that the link you’ve sent and the package (and the code) you’ve mentioned is meant to be added to your code, not Grafana code / config (if I’m understanding everything correctly).
Unless you’ve meant that you want traces from Grafana (not from your application) to be enriched with profiles?

I think you misunderstood, I’m trying to monitor the performance of the Grafana program right now.

It would be best if you were more specific with your request. “to monitor the performance of the Grafana program” is very generic.

“Monitoring” can be based on different types of signals.
The most used signal type is metric and Grafana already offers its metrics.
Other signal types, such as logs or traces, can also be useful and they are also provided by Grafana.

Yes, you can use profiles, but that means that the app (Grafana) must be “compiled” with those profiling libraries, which are mentioned in the provided doc. I don’t think that Grafana has them by default. Of course, nobody is stopping you from using Grafana source code and adding profiling code there, building your own Grafana with profiling support and then you can get also profiles from Grafana.