View Source Unleash.Propagation.GRPC.ImpressionsClientInterceptor (Unleash v3.0.0)

a gRPC Client Interceptor to automatically backpropagate impressions returned by downstream gRPC services. Client-side counterpart of Unleash.Propagation.GRPC.ImpressionsServerInterceptor.

The impressions returned by the downstream gRPC service will be imported and merged with the impressions generated locally.

NOTE:

  • Due to elxir-grpc Client Interceptor limitations, this interceptor will save the downstream-returned impressions only if the downstream is called with the option return_headers: true (See GRPC.Stub). See https://github.com/elixir-grpc/grpc/issues/388
  • This interceptor won't save downstream-returned impressions if no impression tracking session is active when calling the downstream service. See Unleash.Propagation.track_impressions()

For further details on the propagation mechanism, see Unleash.Propagation.