Class GrpcWrapper

java.lang.Object
io.dapr.internal.opencensus.GrpcWrapper

public final class GrpcWrapper
extends java.lang.Object
Wraps a Dapr gRPC stub with telemetry interceptor.
  • Method Summary

    Modifier and Type Method Description
    static DaprGrpc.DaprStub intercept​(reactor.util.context.Context context, DaprGrpc.DaprStub client)
    Populates GRPC client with interceptors.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • intercept

      public static DaprGrpc.DaprStub intercept​(reactor.util.context.Context context, DaprGrpc.DaprStub client)
      Populates GRPC client with interceptors.
      Parameters:
      context - Reactor's context.
      client - GRPC client for Dapr.
      Returns:
      Client after adding interceptors.