github.com/blend/go-sdk@v1.20240719.1/statsd/constants.go (about)

     1  /*
     2  
     3  Copyright (c) 2024 - 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 statsd
     9  
    10  import "time"
    11  
    12  // Constants
    13  const (
    14  	DefaultDialTimeout   = time.Second
    15  	DefaultMaxPacketSize = 1 << 12 // 2^12 or 4kB
    16  	DefaultMaxBufferSize = 32
    17  )
    18  
    19  // MetricTypes
    20  const (
    21  	MetricTypeCount        = "c"
    22  	MetricTypeGauge        = "g"
    23  	MetricTypeHistogram    = "h"
    24  	MetricTypeDistribution = "d"
    25  	MetricTypeTimer        = "ms"
    26  )