Logs that are sent to Grafana/Loki contain body in base64 #3017
Unanswered
ym-project
asked this question in
Q&A
Replies: 1 comment
-
I tried to replace set_body content to log_record.set_body(AnyValue::String(StringValue::from(record.args().to_string()))); And base64 body was fixed. Could somebody explain why |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The problem: Grafana/Loki received logs with encoded to base64 body

Is it ok for open telemetry? Or something went wrong?
Below you can see my code snippet:
I check
log_record
before callemit()
, and here resultAs you can see, body field is not base64, it's string with content
starting new connection: http://localhost:3100/
And then I don't know how to debug opentelemetry functions. But something happens after
logger.emit(log_record);
Beta Was this translation helpful? Give feedback.
All reactions