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

Start using generics & Go 1.18 #193

Open
GiedriusS opened this issue Feb 9, 2022 · 0 comments
Open

Start using generics & Go 1.18 #193

GiedriusS opened this issue Feb 9, 2022 · 0 comments

Comments

@GiedriusS
Copy link
Collaborator

It has been an issue for a long time to use this SDK with structured data in Grafana. There are two parts to it:

  • There is no way to express certain things in Go easily that we can do with JSONs. Go 1.18 is around the corner which has support for generics so I propose moving to that ASAP
  • Lack of schema in Grafana. Even though you can generate any kind of value with the SDK but does that value make sense to Grafana itself? This ideally should be solved in Grafana with Cue or something? Also, perhaps we could automatically generate what values don't make sense by generating random dashboards and checking whether there are any JS errors in the console when opening that dashboard?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant