grpc / grpc-go

The Go language implementation of gRPC. HTTP/2 based RPC

Home Page:https://grpc.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for using zap.Object

varkey98 opened this issue · comments

Considering how popular zap is, was wondering if zap.ObjectMarshaler can be implemented on the structs created via pb.

Use case(s) - what problem will this feature solve?

As zap.Any uses reflection and is a costly operation, zap.Object would improve performance while logging

Thank you for the suggestion. Unfortunately, we do not plan to support zap in the future.

Thank you 😀