grafana / explore-profiles

Explore Profiles is a native Grafana application designed to integrate seamlessly with Pyroscope, the open-source continuous profiling platform, providing a smooth, query-less experience for browsing and analyzing profiling data.
GNU Affero General Public License v3.0
18 stars 1 forks source link

refactor(Ai): Add official LLM package #221

Closed grafakus closed 1 week ago

grafakus commented 2 weeks ago

✨ Description

Related issue(s): -

This PR to use the official @grafana/llm package instead of the @grafana/experimental one.

📖 Summary of the changes

This PR also improves a bit the UI of the "Function details" panel:

Before After
Screenshot 2024-10-11 at 13 37 41 Screenshot 2024-10-11 at 13 36 10

See diff tab for specific comments.

🧪 How to test?

Manually, by testing the AI features: "Explain flame graph" and "Optimize code"

github-actions[bot] commented 2 weeks ago

Unit test coverage

Lines Statements Branches Functions
Coverage: 11%
11.51% (428/3716) 9.08% (120/1321) 8.61% (102/1184)