Documentation
¶
Index ¶
- func HeapDump() ([]byte, error)
- func InitTracing(config *structures.Config, transporter *services.Transporter) error
- func NewWsReporter(transporter *services.Transporter) reporter.Reporter
- func StartCPUProfile() error
- func StopCPUProfile() ([]byte, error)
- type Error
- type Notifier
- type Timers
- type WsReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracing ¶
func InitTracing(config *structures.Config, transporter *services.Transporter) error
InitTracing with config and transporter provided
func NewWsReporter ¶
func NewWsReporter(transporter *services.Transporter) reporter.Reporter
NewWsReporter create a reporter using specified transporter
func StartCPUProfile ¶
func StartCPUProfile() error
StartCPUProfile start a CPU profiling and write it to file
func StopCPUProfile ¶
StopCPUProfile stop the profiling and read the file
Types ¶
type Notifier ¶
type Notifier struct {
Transporter *services.Transporter
}
Notifier with transporter
type WsReporter ¶
type WsReporter struct {
Transporter *services.Transporter
}
WsReporter is a Zipkin compatible reporter through PM2 WebSocket
func (*WsReporter) Close ¶
func (r *WsReporter) Close() error
Close the reporter (not used, ws handled in transporter)
func (*WsReporter) Send ¶
func (r *WsReporter) Send(s model.SpanModel)
Send a message using PM2 transporter
Click to show internal directories.
Click to hide internal directories.