Documentation
¶
Index ¶
- Constants
- type CPU
- type Memory
- type Metrics
- type NIC
- type ProcessCPU
- type Reporter
- type ReporterOption
- func WithReporterAccessToken(accessToken string) ReporterOption
- func WithReporterAddress(address string) ReporterOption
- func WithReporterAttributes(attributes map[string]string) ReporterOption
- func WithReporterMeasurementDuration(measurementDuration time.Duration) ReporterOption
- func WithReporterTimeout(timeout time.Duration) ReporterOption
- func WithReporterTracerID(tracerID uint64) ReporterOption
- type Runtime
Constants ¶
View Source
const ( ReporterPlatformKey = "lightstep.reporter_platform" ReporterPlatformVersionKey = "lightstep.reporter_platform_version" ReporterVersionKey = "lightstep.reporter_version" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type ProcessCPU ¶
type Reporter ¶
type Reporter struct {
Start time.Time
End time.Time
MetricsCount int
// contains filtered or unexported fields
}
func NewReporter ¶
func NewReporter(opts ...ReporterOption) *Reporter
type ReporterOption ¶
type ReporterOption func(*config)
func WithReporterAccessToken ¶
func WithReporterAccessToken(accessToken string) ReporterOption
WithReporterAccessToken sets an access token for communicating with LightStep
func WithReporterAddress ¶
func WithReporterAddress(address string) ReporterOption
WithReporterAddress sets the address of the LightStep endpoint
func WithReporterAttributes ¶
func WithReporterAttributes(attributes map[string]string) ReporterOption
WithReporterAttributes sets attributes reported back to LightStep
func WithReporterMeasurementDuration ¶
func WithReporterMeasurementDuration(measurementDuration time.Duration) ReporterOption
WithReporterMeasurementDuration sets the duration reported back to LightStep
func WithReporterTimeout ¶
func WithReporterTimeout(timeout time.Duration) ReporterOption
WithReporterTimeout sets the timeout when communicating with LightStep
func WithReporterTracerID ¶
func WithReporterTracerID(tracerID uint64) ReporterOption
WithReporterTracerID sets the tracer ID reported back to LightStep
Click to show internal directories.
Click to hide internal directories.