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 FAQ question on zap dropping logs due to sampling #875

Merged
merged 1 commit into from
Nov 12, 2020
Merged

Conversation

prashantv
Copy link
Collaborator

Multiple issues have been opened about missing logs (e.g., #874, #588).

While sampling is mentioned in the API documentation for NewProductionConfig,
it may help to add an FAQ question as well.

Multiple issues have been opened about missing logs (e.g., #874, #588).

While sampling is mentioned in the API documentation for `NewProductionConfig`,
it may help to add an FAQ question as well.
@codecov
Copy link

codecov bot commented Nov 9, 2020

Codecov Report

Merging #875 (809e6ea) into master (404189c) will decrease coverage by 0.15%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #875      +/-   ##
==========================================
- Coverage   98.36%   98.21%   -0.16%     
==========================================
  Files          43       43              
  Lines        2390     1904     -486     
==========================================
- Hits         2351     1870     -481     
+ Misses         32       27       -5     
  Partials        7        7              
Impacted Files Coverage Δ
internal/ztest/timeout.go 81.81% <0.00%> (-4.85%) ⬇️
zapcore/write_syncer.go 87.50% <0.00%> (-2.98%) ⬇️
internal/exit/exit.go 90.90% <0.00%> (-2.85%) ⬇️
zapcore/encoder.go 87.09% <0.00%> (-1.14%) ⬇️
zapcore/core.go 93.54% <0.00%> (-1.05%) ⬇️
zapcore/entry.go 93.82% <0.00%> (-0.80%) ⬇️
stacktrace.go 96.00% <0.00%> (-0.56%) ⬇️
global.go 96.66% <0.00%> (-0.48%) ⬇️
flag.go 100.00% <0.00%> (ø)
sink.go 100.00% <0.00%> (ø)
... and 33 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 404189c...809e6ea. Read the comment docs.

@rabbbit
Copy link
Contributor

rabbbit commented Nov 12, 2020

Is coverage expected to be off?

@prashantv
Copy link
Collaborator Author

Is coverage expected to be off?

Looks like it fixed itself, now says no coverage differences. Not sure what was going on earlier

@prashantv prashantv merged commit 9d2e5de into master Nov 12, 2020
@prashantv prashantv deleted the faq-sample branch November 12, 2020 21:59
cgxxv pushed a commit to cgxxv/zap that referenced this pull request Mar 25, 2022
Multiple issues have been opened about missing logs (e.g., uber-go#874, uber-go#588).

While sampling is mentioned in the API documentation for `NewProductionConfig`,
it may help to add an FAQ question as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants