Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidProjectID occurs if project identifier is invalid. ErrInvalidProjectID = errors.New("invalid project id") )
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
Errorf(string, ...interface{})
}
Logger defines an interface to log an error.
type Option ¶
type Option func(o *Options)
Option defines an recorder option.
func WithClientOption ¶
func WithClientOption(opts ...option.ClientOption) Option
WithClientOption retuns an option that specifies GRPC client Options.
func WithLogger ¶
WithLogger returns an Option that specifies a logger of the Recorder.
func WithProject ¶
WithProject returns a Option that specifies a project identifier.
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options containes options for recorder and StackDriver client.
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder implements basictracer.SpanRecorder interface used to write traces to the GCE StackDriver.
func NewRecorder ¶
NewRecorder creates new GCloud StackDriver recorder.
func (*Recorder) RecordSpan ¶
func (r *Recorder) RecordSpan(sp basictracer.RawSpan)
RecordSpan writes Span to the GCLoud StackDriver.
Click to show internal directories.
Click to hide internal directories.