-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
enhancementNew feature or requestNew feature or requestinvestigation neededThe investigation is neededThe investigation is needed
Milestone
Description
It appears this library doesn't actually support structured logging, instead it formats log lines into nested JSON message and then relies on json parser within loki to allow filtering.
As per Loki HTTP documentation to add structured logs one can append them as last item to log line array: https://grafana.com/docs/loki/latest/reference/api/#push-log-entries-to-loki
That will produce structured metadata as per https://grafana.com/docs/loki/latest/get-started/labels/structured-metadata/
Looking through the sourcecode it seems this library only serialises timestamp and message:
Entries.Add(new[] {timestamp.ToUnixNanosecondsString(), entry}); |
mishamyte, loraderon and kYann
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestinvestigation neededThe investigation is neededThe investigation is needed