file

package module
v0.0.0-...-45fead3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultErrorHandler

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

func (DefaultErrorHandler) Handle

func (eh DefaultErrorHandler) Handle(err error)

type ErrorHandler

type ErrorHandler interface {
	Handle(err error)
}

type Exporter

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

func NewExporter

func NewExporter(opts ...Option) Exporter

func (Exporter) Close

func (e Exporter) Close(ctx context.Context) error

func (Exporter) ExportSpan

func (e Exporter) ExportSpan(span trace.Span)

type Option

type Option func(*config)

func WithErrorHandler

func WithErrorHandler(errorHandler ErrorHandler) Option

func WithFile

func WithFile(file *os.File) Option

type Span

type Span struct {
	ID            string            `json:"span_id"`
	TraceID       string            `json:"trace_id"`
	ParentID      string            `json:"parent_id,omitempty"`
	OperationName string            `json:"operation_name"`
	StartTime     time.Time         `json:"start_time"`
	FinishTime    time.Time         `json:"finish_time"`
	Attributes    map[string]string `json:"attributes,omitempty"`
}

Jump to

Keyboard shortcuts

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