Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON log serialization #6

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tazz4843
Copy link
Contributor

Locked behind the json-log-fmt feature flag, requires serde-json so also enables the json feature flag. Could probably also add a conditional to the actual FenrirBuilder, but given people will likely be deploying this in prod, they would either want it on for all their services or off, so I saw no reason to add that.

Sorry about the first commit not having gitmoji, forgot about that and wasn't able to fix it up as I had already pushed new commits by that point.

tazz4843 added 5 commits July 4, 2023 20:35
This commit allows users to configure the
maximum size of a single message.
If a message is over the configured size, it
will be ignored and not sent to Loki.
Useful for avoiding congestion on slow or
unreliable networks.
Defaults to None, meaning no limit.
Enabling the flag also enables the JSON feature,
as serde-json is required to serialize the message.
@tazz4843
Copy link
Contributor Author

1.60.0 error appears to be tokio's MSRV bump to 1.63.0, unrelated to this PR.

@tazz4843
Copy link
Contributor Author

Accidentally pushed a commit to the wrong branch, had to do a force-push to fix it.

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