recorder

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 83

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.

Jump to

Keyboard shortcuts

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