Documentation ¶
Overview ¶
Package internal offers helper interfaces that are internal to the Wavefront Go SDK. Interfaces within this package are not guaranteed to be backwards compatible between releases.
Index ¶
- Constants
- func DeltaCounterName(name string) string
- func GetBuffer() *bytes.Buffer
- func GetHostname(defaultVal string) string
- func GetSemVer(version string) (float64, error)
- func HasDeltaPrefix(name string) bool
- func PutBuffer(buf *bytes.Buffer)
- func Sanitize(str string) string
- func SanitizeValue(str string) string
- type ConnectionHandler
- type Flusher
- type LineHandler
- type LineHandlerOption
- type RealLineHandler
- func (lh *RealLineHandler) Flush() error
- func (lh *RealLineHandler) FlushAll() error
- func (lh *RealLineHandler) GetFailureCount() int64
- func (lh *RealLineHandler) GetThrottledCount() int64
- func (lh *RealLineHandler) HandleLine(line string) error
- func (lh *RealLineHandler) Start()
- func (lh *RealLineHandler) Stop()
- type Reporter
Constants ¶
View Source
const ( DeltaPrefix = "\u2206" AltDeltaPrefix = "\u0394" )
View Source
const ( MetricFormat = "wavefront" HistogramFormat = "histogram" TraceFormat = "trace" SpanLogsFormat = "spanLogs" EventFormat = "event" )
Variables ¶
This section is empty.
Functions ¶
func DeltaCounterName ¶
Gets a delta counter name prefixed with ∆.
func GetHostname ¶
func HasDeltaPrefix ¶
func Sanitize ¶ added in v0.12.0
Sanitize sanitizes string of metric name, source and key of tags according to the rule of Wavefront proxy.
func SanitizeValue ¶ added in v0.12.0
SanitizeValue sanitizes string of tags value, etc.
Types ¶
type ConnectionHandler ¶
type LineHandler ¶
type LineHandlerOption ¶ added in v0.9.3
type LineHandlerOption func(*RealLineHandler)
func SetHandlerPrefix ¶ added in v0.9.3
func SetHandlerPrefix(prefix string) LineHandlerOption
func SetLockOnThrottledError ¶ added in v0.9.5
func SetLockOnThrottledError(lock bool) LineHandlerOption
func SetRegistry ¶ added in v0.9.3
func SetRegistry(registry sdkmetrics.Registry) LineHandlerOption
type RealLineHandler ¶ added in v0.14.0
type RealLineHandler struct { Reporter Reporter BatchSize int MaxBufferSize int Format string // contains filtered or unexported fields }
func NewLineHandler ¶ added in v0.9.3
func NewLineHandler(reporter Reporter, format string, flushInterval time.Duration, batchSize, maxBufferSize int, setters ...LineHandlerOption) *RealLineHandler
func (*RealLineHandler) Flush ¶ added in v0.14.0
func (lh *RealLineHandler) Flush() error
func (*RealLineHandler) FlushAll ¶ added in v0.14.0
func (lh *RealLineHandler) FlushAll() error
func (*RealLineHandler) GetFailureCount ¶ added in v0.14.0
func (lh *RealLineHandler) GetFailureCount() int64
func (*RealLineHandler) GetThrottledCount ¶ added in v0.14.0
func (lh *RealLineHandler) GetThrottledCount() int64
GetThrottledCount returns the number of Throttled errors received.
func (*RealLineHandler) HandleLine ¶ added in v0.14.0
func (lh *RealLineHandler) HandleLine(line string) error
func (*RealLineHandler) Start ¶ added in v0.14.0
func (lh *RealLineHandler) Start()
func (*RealLineHandler) Stop ¶ added in v0.14.0
func (lh *RealLineHandler) Stop()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.