Skip to content

Comments

Tenants, error handling, timestamps, structured metadata, and json wrapping#4

Open
jeremydonahue wants to merge 9 commits intoskroutz:mainfrom
jeremydonahue:main
Open

Tenants, error handling, timestamps, structured metadata, and json wrapping#4
jeremydonahue wants to merge 9 commits intoskroutz:mainfrom
jeremydonahue:main

Conversation

@jeremydonahue
Copy link

This PR combines multiple improvements:

  • Support for specifying a tenant value for the X-Scope-OrgID header.
  • Raise exceptions on HTTP errors when sending logs to Loki.
  • Use the timestamps from job logs (logs viewed in Loki will have the timestamp of when the log was actually emitted).
  • Support for structured metadata.
  • Automatic collapsing of multi-line pretty-printed JSON logs into single compact log lines.
  • Optional wrapping of non-JSON log messages in a JSON object with a message key for consistent log format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant