Loki Exporter - lokiexporter.convertLogBodyToEntry fails to quote value when there are whitespace characters #11827
Labels
bug
Something isn't working
exporter/loki
Loki Exporter
good first issue
Good for newcomers
priority:p3
Lowest
Describe the bug
For the unit test: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/lokiexporter/exporter_test.go#L294-L308,
If I replace line 301,
with
Then, it converts to:
When running the LogQL,
{...} | logfmt
, Loki is not able to treatnew world
as a unit.What did you expect to see?
I think
new world
should be quoted instead:The text was updated successfully, but these errors were encountered: