Documentation
¶
Index ¶
- func SetSamplingRate(fraction float64)
- type Client
- type Exporter
- type Span
- func (s *Span) CanGetSummary() bool
- func (s *Span) Finish()
- func (s *Span) FinishWait()
- func (s *Span) GetSummary() []string
- func (s *Span) NewChild(name string) platform.Span
- func (s *Span) OutputSummary()
- func (s *Span) SetEnvironment(env string) platform.Span
- func (s *Span) SetError(err error) platform.Span
- func (s *Span) SetLabel(key, value string) platform.Span
- func (s *Span) SetResponse(status int) platform.Span
- func (s *Span) SetSQL(sql string) platform.Span
- func (s *Span) SetServiceName(name string) platform.Span
- func (s *Span) SetUser(user string) platform.Span
- func (s *Span) SetVersion(ver string) platform.Span
- func (s *Span) TraceID() string
- type Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetSamplingRate ¶
func SetSamplingRate(fraction float64)
SetSamplingRate sets sampling probability. (e.g. '1' means 100%, '0' means 0%)
Types ¶
type Client ¶
type Client struct {
Exporters []Exporter
}
Client is a trace client for OpenCensus.
func (*Client) AddExporter ¶
type Exporter ¶
type Exporter interface { // Flush waits for exported data to be uploaded. Flush() // Close closes client. Close() }
Exporter is tracing backend client. (e.g. Stackdriver client)
type Span ¶
Span is wrapper struct of opencensus.Span.
func (*Span) CanGetSummary ¶
CanGetSummary determines Span can call GetSummary().
func (*Span) FinishWait ¶
func (s *Span) FinishWait()
Finish sends trace data asynchronously. (dummy method for lightstep)
func (*Span) SetEnvironment ¶
SetEnvironment sets environment data into span.
func (*Span) SetResponse ¶
SetResponse sets HTTP response status into span.
func (*Span) SetServiceName ¶
SetServiceName sets service name into span.
func (*Span) SetVersion ¶
SetVersion sets version data into span.
Click to show internal directories.
Click to hide internal directories.