Skip to content

Commit

Permalink
doc: Clarify SampleRate documentation (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhcarvalho committed Oct 16, 2020
1 parent c95d9a4 commit e238e27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ type ClientOptions struct {
// Configures whether SDK should generate and attach stacktraces to pure
// capture message calls.
AttachStacktrace bool
// The sample rate for event submission (0.0 - 1.0, defaults to 1.0).
// The sample rate for event submission in the range [0.0, 1.0]. By default,
// all events are sent. Thus, as a historical special case, the sample rate
// 0.0 is treated as if it was 1.0.
SampleRate float64
// List of regexp strings that will be used to match against event's message
// and if applicable, caught errors type and value.
Expand Down

0 comments on commit e238e27

Please sign in to comment.