github.com/blend/go-sdk@v1.20220411.3/stats/collector.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package stats
     9  
    10  import "time"
    11  
    12  // Collector is a stats collector.
    13  type Collector interface {
    14  	Taggable
    15  	Count(name string, value int64, tags ...string) error
    16  	Increment(name string, tags ...string) error
    17  	Gauge(name string, value float64, tags ...string) error
    18  	Histogram(name string, value float64, tags ...string) error
    19  	Distribution(name string, value float64, tags ...string) error
    20  	TimeInMilliseconds(name string, value time.Duration, tags ...string) error
    21  	Flush() error
    22  	Close() error
    23  }