hyperdx

package module
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracer added in v1.4.0

func InitTracer()

Types

type HyperdxSender

type HyperdxSender struct {
	// contains filtered or unexported fields
}

HyperdxSender instance of the

func New

func New(token string, options ...SenderOptionFunc) (*HyperdxSender, error)

New creates a new Hyperdx sender with a token and options

func (*HyperdxSender) CloseIdleConnections

func (l *HyperdxSender) CloseIdleConnections()

func (*HyperdxSender) Drain

func (l *HyperdxSender) Drain()

Drain - Send remaining logs

func (*HyperdxSender) Send

func (l *HyperdxSender) Send(payload []byte) error

Send the payload to logz.io

func (*HyperdxSender) Stop

func (l *HyperdxSender) Stop()

Stop will close the LevelDB queue and do a final drain

func (*HyperdxSender) Sync

func (l *HyperdxSender) Sync() error

Sync drains the queue

func (*HyperdxSender) Write

func (l *HyperdxSender) Write(p []byte) (n int, err error)

type Sender

type Sender HyperdxSender

Sender Alias to HyperdxSender

type SenderOptionFunc

type SenderOptionFunc func(*HyperdxSender) error

SenderOptionFunc options for logz

func SetCheckDiskSpace

func SetCheckDiskSpace(check bool) SenderOptionFunc

SetDrainDiskThreshold to change the maximum used disk space

func SetDebug

func SetDebug(debug io.Writer) SenderOptionFunc

SetDebug mode and send logs to this writer

func SetDrainDiskThreshold

func SetDrainDiskThreshold(th int) SenderOptionFunc

SetDrainDiskThreshold to change the maximum used disk space

func SetDrainDuration

func SetDrainDuration(duration time.Duration) SenderOptionFunc

SetDrainDuration to change the interval between drains

func SetTempDirectory

func SetTempDirectory(dir string) SenderOptionFunc

SetTempDirectory Use this temporary dir

func SetUrl

func SetUrl(url string) SenderOptionFunc

SetUrl set the url which maybe different from the defaultUrl

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL