Class StatsTestUtils.FakeStatsRecorder

    • Constructor Detail

      • FakeStatsRecorder

        public FakeStatsRecorder()
    • Method Detail

      • newMeasureMap

        public io.opencensus.stats.MeasureMap newMeasureMap()
        Specified by:
        newMeasureMap in class io.opencensus.stats.StatsRecorder
      • pollRecord

        public StatsTestUtils.MetricsRecord pollRecord​(long timeout,
                                                       java.util.concurrent.TimeUnit unit)
                                                throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • rolloverRecords

        public void rolloverRecords()
        Disconnect this tagger with the contexts it has created so far. The records from those contexts will not show up in pollRecord(). Useful for isolating the records between test cases.