An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 6.4% on proxy.golang.org

proxy.golang.org : github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap

`ctxzap` is a ctxlogger that is backed by Zap It accepts a user-configured `zap.Logger` that will be used for logging. The same `zap.Logger` will be populated into the `context.Context` passed into gRPC handler code. You can use `ctxzap.Extract` to log into a request-scoped `zap.Logger` instance in your handler code. As `ctxzap.Extract` will iterate all tags on from `grpc_ctxtags` it is therefore expensive so it is advised that you extract once at the start of the function from the context and reuse it for the remainder of the function (see examples). Please see examples and tests for examples of use.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap
Keywords: authentication , generic-functions , golang , grpc , interceptor , library , logging , middleware , retries , testing
License: Apache-2.0
Latest release: 20 days ago
Namespace: github.com/grpc-ecosystem/go-grpc-middleware/logging/zap
Stars: 6,258 on GitHub
Forks: 690 on GitHub
Total Commits: 297
Committers: 124
Average commits per author: 2.395
Development Distribution Score (DDS): 0.758
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: 20 days ago