Documentation
¶
Overview ¶
Package trace manages execution traces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a trace context.
func (*Context) SpanProtos ¶
SpanProtos returns span protos in the trace context.
type Exporter ¶
type Exporter struct { ProjectID string ServiceName string // contains filtered or unexported fields }
Exporter is trace exporter.
func NewExporter ¶
NewExporter creates new trace exporter.
type Options ¶
type Options struct { ProjectID string ServiceName string // threshold of step duration to export. // it will not export step trace if step duration is less than this. StepThreshold time.Duration // threshold of span duration to export. // it will not export span trace if span duration is less than this. SpanThreshold time.Duration ClientOptions []option.ClientOption }
Options is options for trace exporter.
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
Span is a trace span.
Click to show internal directories.
Click to hide internal directories.