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

app/log: integrate optional loki logging spout #1425

Merged
merged 7 commits into from
Nov 11, 2022
Merged

Conversation

corverroos
Copy link
Contributor

Adds an optional loki-client as log destination for local docker-compose deployments.

category: feature
ticket: #1406

@corverroos corverroos changed the base branch from main to corver/promtail November 10, 2022 14:29
@codecov
Copy link

codecov bot commented Nov 10, 2022

Codecov Report

Base: 53.51% // Head: 53.26% // Decreases project coverage by -0.25% ⚠️

Coverage data is based on head (cff2aaf) compared to base (29e2cf1).
Patch coverage: 13.75% of modified lines in pull request are covered.

❗ Current head cff2aaf differs from pull request most recent head ea2e6bb. Consider uploading reports for the commit ea2e6bb to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1425      +/-   ##
==========================================
- Coverage   53.51%   53.26%   -0.26%     
==========================================
  Files         147      148       +1     
  Lines       18316    18390      +74     
==========================================
- Hits         9802     9795       -7     
- Misses       7171     7247      +76     
- Partials     1343     1348       +5     
Impacted Files Coverage Δ
app/log/config.go 67.61% <0.00%> (-9.98%) ⬇️
app/log/wrapper.go 0.00% <0.00%> (ø)
cmd/bootnode.go 31.16% <0.00%> (-0.21%) ⬇️
cmd/cmd.go 77.90% <ø> (+0.12%) ⬆️
cmd/dkg.go 7.14% <0.00%> (ø)
testutil/compose/config.go 62.50% <ø> (-1.50%) ⬇️
testutil/compose/run.go 85.18% <ø> (-0.19%) ⬇️
testutil/compose/template.go 43.75% <ø> (ø)
app/log/loki/client.go 59.40% <31.25%> (-5.86%) ⬇️
cmd/run.go 93.87% <80.00%> (+0.26%) ⬆️
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Base automatically changed from corver/promtail to main November 11, 2022 10:52
app/log/config.go Outdated Show resolved Hide resolved
// logger is the global logger.
logger zapLogger = newDefaultLogger()
// stopFuncs are the global logger stop functions.
stopFuncs []func(context.Context) = nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need to initialize this as nil?

app/log/loki/client.go Outdated Show resolved Hide resolved
@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Nov 11, 2022
@obol-bulldozer obol-bulldozer bot merged commit 514ae1d into main Nov 11, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/lokiadd branch November 11, 2022 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants