Class RpcViews

java.lang.Object
io.opencensus.contrib.grpc.metrics.RpcViews

public final class RpcViews extends Object
Helper class that allows users to register rpc views easily.
Since:
0.11
  • Method Details

    • registerAllGrpcViews

      public static void registerAllGrpcViews()
      Registers all standard gRPC views.

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      This is equivalent with calling registerClientGrpcViews() and registerServerGrpcViews().

      Since:
      0.13
    • registerClientGrpcViews

      public static void registerClientGrpcViews()
      Registers all standard client gRPC views.

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      Since:
      0.16
    • registerClientRetryGrpcViews

      public static void registerClientRetryGrpcViews()
      Registers client retry gRPC views.

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      Since:
      0.31.0
    • registerServerGrpcViews

      public static void registerServerGrpcViews()
      Registers all standard server gRPC views.

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      Since:
      0.16
    • registerAllGrpcBasicViews

      public static void registerAllGrpcBasicViews()
      Registers all basic gRPC views.

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      This is equivalent with calling registerClientGrpcBasicViews() and registerServerGrpcBasicViews().

      Since:
      0.19
    • registerClientGrpcBasicViews

      public static void registerClientGrpcBasicViews()
      Registers basic client gRPC views.

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      Since:
      0.19
    • registerServerGrpcBasicViews

      public static void registerServerGrpcBasicViews()
      Registers basic server gRPC views.

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      Since:
      0.19
    • registerAllCumulativeViews

      @Deprecated public static void registerAllCumulativeViews()
      Deprecated.
      in favor of registerAllGrpcViews(). It is likely that there won't be stats for the old views, but you may still want to register the old views before they are completely removed.
      Registers all standard cumulative views.

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      Since:
      0.11.0
    • registerAllIntervalViews

      @Deprecated public static void registerAllIntervalViews()
      Deprecated.
      because interval window is deprecated. There won't be interval views in the future.
      Registers all standard interval views.

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      Since:
      0.11.0
    • registerAllViews

      @Deprecated public static void registerAllViews()
      Deprecated.
      Registers all views.

      This is equivalent with calling registerAllCumulativeViews() and registerAllIntervalViews().

      It is recommended to call this method before doing any RPC call to avoid missing stats.

      Since:
      0.11.0
    • registerRealTimeMetricsViews

      public static void registerRealTimeMetricsViews()
      Registers views for real time metrics reporting for streaming RPCs. This views will produce data only for streaming gRPC calls.
      Since:
      0.18