Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Merge pull request #2 from InVisionApp/ASC-485
Browse files Browse the repository at this point in the history
expose WithMaxBufferedSpans()
  • Loading branch information
Chris Leavoy authored Oct 15, 2020
2 parents eca2786 + 0ed052b commit e49dd54
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lightstep/lightstep.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ func WithPlainText(pt bool) Option {
}
}

// WithMaxBufferedSpans sets the maximum number of spans that will be buffered
// before sending them to a collector.
// Should be used to override the `DefaultMaxSpan` value of 1000.
func WithMaxBufferedSpans(value int) Option {
return func(c *config) {
c.options.MaxBufferedSpans = value
}
}

// WithSystemMetricsDisabled determines if system metrics are disabled or not.
// Default is false.
func WithSystemMetricsDisabled(disabled bool) Option {
Expand Down

0 comments on commit e49dd54

Please sign in to comment.