Documentation ¶
Overview ¶
Package recorder implements a reporter to record spans in v2 format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReporterRecorder ¶
type ReporterRecorder struct {
// contains filtered or unexported fields
}
ReporterRecorder records Zipkin spans.
func NewReporter ¶
func NewReporter() *ReporterRecorder
NewReporter returns a new recording reporter.
func (*ReporterRecorder) Close ¶
func (r *ReporterRecorder) Close() error
Close flushes the reporter
func (*ReporterRecorder) Flush ¶
func (r *ReporterRecorder) Flush() []model.SpanModel
Flush returns all recorded spans and clears its internal span storage
func (*ReporterRecorder) Send ¶
func (r *ReporterRecorder) Send(span model.SpanModel)
Send adds the provided span to the span list held by the recorder.
Click to show internal directories.
Click to hide internal directories.