Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs Panel: Permalink (copy shortlink) #80764

Merged
merged 20 commits into from Jan 23, 2024

Conversation

gtk-grafana
Copy link
Contributor

@gtk-grafana gtk-grafana commented Jan 17, 2024

What is this feature?
Adding the short-links that currently exist in explore, to the dashboard panel!

image

Why do we need this feature?
Parity between explore/logs panels, sharing individual logs within the context of a dashboard can be valuable for
teams debugging with logs.

Who is this feature for?
Users of logs panels in dashboards.

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@gtk-grafana gtk-grafana marked this pull request as ready for review January 19, 2024 14:00
@gtk-grafana gtk-grafana requested a review from a team as a code owner January 19, 2024 14:00
@gtk-grafana gtk-grafana added this to the 10.4.x milestone Jan 19, 2024
@svennergr
Copy link
Contributor

Just leaving this here without testing: we should make sure that added functionality will not directly show up for apps or scenes plugins without making sure it's working for them as well. That's why we decided to disable LogContext for apps by default, and enable it for dashboards.

@matyax matyax requested a review from svennergr January 23, 2024 10:51
Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gave it a quick try and works very well!

@gtk-grafana gtk-grafana changed the title Logs Panel: Permalink (short URLs) in logs dashboards panels - PoC Logs Panel: Permalink (short URLs) in logs dashboards panels Jan 23, 2024
@gtk-grafana
Copy link
Contributor Author

Good catch @svennergr, that would have broken the logs app. How could we catch this automatically instead of relying on someone remembering?

@svennergr
Copy link
Contributor

How could we catch this automatically instead of relying on someone remembering?

Hm, good call. Let's move that question to our next standup to discuss 👍

Copy link
Contributor

@svennergr svennergr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gtk-grafana gtk-grafana changed the title Logs Panel: Permalink (short URLs) in logs dashboards panels Logs Panel: Permalink (copy shortlink) Jan 23, 2024
@gtk-grafana gtk-grafana merged commit 510dba7 into main Jan 23, 2024
16 checks passed
@gtk-grafana gtk-grafana deleted the gtk-grafana/logs/logs-panel-shortlink branch January 23, 2024 20:20
Ukochka pushed a commit that referenced this pull request Feb 14, 2024
Compute permalink url for log lines within logs panels in dashboards.

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
@aangelisc aangelisc modified the milestones: 10.4.x, 10.4.0 Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants