You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All logging middleware will emit a final log statement. It is based on the error returned by the handler function,
the gRPC status code, an error (if any) and it emits at a level controlled via `WithLevels`. You can control this behavior
using `WithDecider`.
But is not implemented anywhere, what is the advisable way to accomplish similar results with v2 API? I would be happy to update the docs with this information as well.
The text was updated successfully, but these errors were encountered:
All "deciders", so functions that decide what to do based on gRPC service name and method (aka "fullMethodName") are removed (!). Use github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/selector interceptor to select what method, type or service should use what interceptor.
I guess the doc should be updated with it, but I'm still about to investigate how to use the Selector as a replacement of WithDecider since I don't see err on CallMeta.
This is what I'm trying to translate to Selector approach:
Hi!
I'm migrating from 1.4.0 to 2.1.0 and we were using
WithDecider
. I see it still referenced on the documentationgo-grpc-middleware/interceptors/logging/doc.go
Lines 12 to 14 in 7da22cf
But is not implemented anywhere, what is the advisable way to accomplish similar results with v2 API? I would be happy to update the docs with this information as well.
The text was updated successfully, but these errors were encountered: