Open anthonyma94 opened 4 months ago
Loki's documentation is poor in this regard, but it actually supports arrays nested in an object:
logger.info(["hello", "world", 2]); // omitted logger.info({ data: ["hello", "world", 2] }); // shows up
If the purpose of convertArrays is only to allow for ingest, I think it should only convert in cases where it would otherwise be omitted, i.e. top-level conversion. Currently it converts array in all levels:
Hey! Indeed, looks like a bug. Happy to accept a PR for the same Thankss
Loki's documentation is poor in this regard, but it actually supports arrays nested in an object:
If the purpose of convertArrays is only to allow for ingest, I think it should only convert in cases where it would otherwise be omitted, i.e. top-level conversion. Currently it converts array in all levels: