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

String for complex types except traces #332

Merged
merged 6 commits into from
Mar 23, 2023

Conversation

gingerwizard
Copy link
Collaborator

With #329 we changed the converted for complex types like Tuple and Arrays to raw.JSONMessage. This allows the trace view to work.

However, this means JSON messages e.g. in logs, are rendered incorrectly.
image

We ideally want to conditionally encode to JSON string based on the preferedVisualizationType i.e. use json.RawMessage for traces but string elsewhere.

This PR handles server side using MutateResponse. Depends on grafana/sqlds#89

@gingerwizard
Copy link
Collaborator Author

@bossinc let me know once the new sqlds is released and ill repush.

@gingerwizard gingerwizard changed the title Json except traces String for complex types except traces Mar 23, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants