Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1497

Add a way to enable per RPC logging

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • .future
    • None
    • protostellar
    • None
    • 0

    Description

      It looks something like

          // if opts.Logger != nil {
          //     loggerOpts := []logging.Option

      Unknown macro: {     //         logging.WithLogOnEvents(logging.StartCall, logging.FinishCall),     //     }

          //     loggerDialOpts = []grpc.DialOption

      Unknown macro: {     //         grpc.WithChainUnaryInterceptor(logging.UnaryClientInterceptor(interceptorLogger(opts.Logger), loggerOpts...)),     //         grpc.WithChainStreamInterceptor(logging.StreamClientInterceptor(interceptorLogger(opts.Logger), loggerOpts...)),     //     }

          // }

      However because zap only has a max logging level of debug it'll cause a lot of spam so we need to work that bit out first.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            charles.dixon Charles Dixon
            charles.dixon Charles Dixon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty