You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is happening in github.com/hashicorp/go-plugin
As @joeblubaugh indicated, t's indeed an problem related to unmarshalling and marshalling the logs. The host pipes the plugin logs, unmarshal and marshal it to wrap it into the host logger and the issue comes from this process which is not deterministic.
What happened:
I'm using the github.com/grafana/grafana-plugin-sdk-go/backend/log package in my SDK code, writing logs like so:
Log messages are printed with nondeterministic ordering after the message field:
The logger uses hclog and marshals to JSON at some point, passing through a
map[string]interface{}
, which makes the output order non-deterministicWhat you expected to happen:
Log fields should always be written to Grafana logs in the order that they're provided.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: