Documentation ¶
Index ¶
- func InitTracer()
- type HyperdxSender
- type Sender
- type SenderOptionFunc
- func SetCheckDiskSpace(check bool) SenderOptionFunc
- func SetDebug(debug io.Writer) SenderOptionFunc
- func SetDrainDiskThreshold(th int) SenderOptionFunc
- func SetDrainDuration(duration time.Duration) SenderOptionFunc
- func SetTempDirectory(dir string) SenderOptionFunc
- func SetUrl(url string) SenderOptionFunc
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) 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
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
Click to show internal directories.
Click to hide internal directories.