Class AbstractAggregator<T>

    • Constructor Detail

      • AbstractAggregator

        protected AbstractAggregator​(io.opentelemetry.sdk.resources.Resource resource,
                                     io.opentelemetry.sdk.common.InstrumentationLibraryInfo instrumentationLibraryInfo,
                                     InstrumentDescriptor instrumentDescriptor,
                                     boolean stateful)
    • Method Detail

      • isStateful

        public boolean isStateful()
        Description copied from interface: Aggregator
        Returns true if the processor needs to keep the previous collected state in order to compute the desired metric.
        Specified by:
        isStateful in interface Aggregator<T>
        Returns:
        true if the processor needs to keep the previous collected state.
      • getResource

        protected final io.opentelemetry.sdk.resources.Resource getResource()
      • getInstrumentationLibraryInfo

        protected final io.opentelemetry.sdk.common.InstrumentationLibraryInfo getInstrumentationLibraryInfo()