Closed carlosms closed 5 years ago
I was thinking that actually the Wrapped context AFAIR is actually not available at all in the interceptors as the api exposes a different data structure. If we want to enable to user to handle log fields inside the interceptors also for the Python SDK I think that we need to open an issue and investigate how we can approach it.
I had a look and it is always possible to handle log fields inside client interceptors as it is handled differently. But it's not documented how to do it, it's just used for client logger interceptors.
Part of #84.
While migrating lookout I noticed that we can't use
pb.AddFields
inside a client interceptor. This is becausepb.DialContextWithInterceptors
was executingCtxlog*ClientInterceptor
before the user provided ones. With the change in this PR the interceptors are called in this order:Instead of the previous one:
@se7entyse7en can you please check if we can have a similar problem in the python API?