Class StatsWrapper


  • @InternalApi("For internal use only")
    public class StatsWrapper
    extends Object
    Wrapper class for accessing opencensus. We use a shaded version of opencensus to avoid polluting the global opencensus namespace. And this provides a facade that will not be relocated.
    • Constructor Detail

      • StatsWrapper

        public StatsWrapper()
    • Method Detail

      • createRecorder

        public static StatsRecorderWrapper createRecorder​(com.google.api.gax.tracing.ApiTracerFactory.OperationType operationType,
                                                          com.google.api.gax.tracing.SpanName spanName,
                                                          Map<String,​String> statsAttributes)
      • getOperationLatencyViewTagValueStrings

        @InternalApi("Visible for testing")
        public static List<String> getOperationLatencyViewTagValueStrings()