Documentation
¶
Index ¶
- type Client
- type Config
- 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 ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a trace client for LightStep.
type Config ¶
type Config struct { // required AccessToken string // optional ServiceName string ReportTimeout time.Duration ReportingPeriod time.Duration MinReportingPeriod time.Duration ReconnectPeriod time.Duration MaxBufferedSpans int MaxLogKeyLen int MaxLogValueLen int MaxLogsPerSpan int DropSpanLogs bool MetaEventReportingEnabled bool UseGRPC bool DialOptions []grpc.DialOption GRPCMaxCallSendMsgSizeBytes int Collector lightstep.Endpoint LightStepAPI lightstep.Endpoint Recorder lightstep.SpanRecorder ConnFactory lightstep.ConnectorFactory }
Config contains token and settings for LightStep.
type Span ¶
type Span struct {
opentracing.Span
}
Span is wrapper struct of opentracing.Span.
func (*Span) CanGetSummary ¶
CanGetSummary determines Span can call GetSummary().
func (*Span) FinishWait ¶
func (s *Span) FinishWait()
FinishWait sends trace data to LightStep 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.